f-80: doc: image, network-config réappliqué à chaque démarrage par l'événement boot-legacy de cloud-init #80
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
ddd20a88c5
commit
8c9c07d36b
3 changed files with 27 additions and 3 deletions
|
|
@ -19,6 +19,8 @@ two_image () {
|
|||
'SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL_SHORT}=="xvd[a-z]", SYMLINK+="$env{ID_SERIAL_SHORT}"' \
|
||||
'SUBSYSTEM=="block", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL_SHORT}=="xvd[a-z]", SYMLINK+="$env{ID_SERIAL_SHORT}%n"' \
|
||||
> /mnt/two-image/etc/udev/rules.d/90-two-xvd.rules
|
||||
printf '%s\n' 'updates:' ' network:' ' when: [boot-new-instance, boot, boot-legacy]' \
|
||||
> /mnt/two-image/etc/cloud/cloud.cfg.d/98_network_updates.cfg
|
||||
umount /mnt/two-image
|
||||
qemu-nbd -d /dev/nbd0 >/dev/null
|
||||
mv "${work}/${IMAGE_FILE}" "${TWO_IMAGE}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue