guestfish: move set-label after mkfs

Fixes:

libguestfs: error: set_label: don't know how to set the label for '' filesystems
This commit is contained in:
Jochen Sprickerhof 2022-09-23 09:20:23 +02:00 committed by Johannes Schauer Marin Rodrigues
parent 3999212c48
commit adf62afcea
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -6946,8 +6946,9 @@ Create a bootable USB Stick that boots into a full Debian desktop:
$ guestfish -N debian-unstable.img=disk:8G -- \
part-disk /dev/sda mbr : \
part-set-bootable /dev/sda 1 true : \
mkfs ext4 /dev/sda1 : \
set-label /dev/sda1 rootfs : \
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
mount /dev/sda1 / : \
tar-in debian-unstable.tar / xattrs:true : \
upload /usr/lib/EXTLINUX/mbr.bin /boot/mbr.bin : \
copy-file-to-device /boot/mbr.bin /dev/sda size:440 : \
@ -6961,8 +6962,9 @@ On architectures without extlinux you can also boot using grub2:
$ guestfish -N debian-unstable.img=disk:2G -- \
part-disk /dev/sda mbr : \
part-set-bootable /dev/sda 1 true : \
mkfs ext4 /dev/sda1 : \
set-label /dev/sda1 rootfs : \
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
mount /dev/sda1 / : \
tar-in fs.tar / xattrs:true : \
command "grub-install /dev/sda" : \
command update-grub : \