forked from josch/mmdebstrap
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:
parent
3999212c48
commit
adf62afcea
1 changed files with 4 additions and 2 deletions
|
@ -6946,8 +6946,9 @@ Create a bootable USB Stick that boots into a full Debian desktop:
|
||||||
$ guestfish -N debian-unstable.img=disk:8G -- \
|
$ guestfish -N debian-unstable.img=disk:8G -- \
|
||||||
part-disk /dev/sda mbr : \
|
part-disk /dev/sda mbr : \
|
||||||
part-set-bootable /dev/sda 1 true : \
|
part-set-bootable /dev/sda 1 true : \
|
||||||
|
mkfs ext4 /dev/sda1 : \
|
||||||
set-label /dev/sda1 rootfs : \
|
set-label /dev/sda1 rootfs : \
|
||||||
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
|
mount /dev/sda1 / : \
|
||||||
tar-in debian-unstable.tar / xattrs:true : \
|
tar-in debian-unstable.tar / xattrs:true : \
|
||||||
upload /usr/lib/EXTLINUX/mbr.bin /boot/mbr.bin : \
|
upload /usr/lib/EXTLINUX/mbr.bin /boot/mbr.bin : \
|
||||||
copy-file-to-device /boot/mbr.bin /dev/sda size:440 : \
|
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 -- \
|
$ guestfish -N debian-unstable.img=disk:2G -- \
|
||||||
part-disk /dev/sda mbr : \
|
part-disk /dev/sda mbr : \
|
||||||
part-set-bootable /dev/sda 1 true : \
|
part-set-bootable /dev/sda 1 true : \
|
||||||
|
mkfs ext4 /dev/sda1 : \
|
||||||
set-label /dev/sda1 rootfs : \
|
set-label /dev/sda1 rootfs : \
|
||||||
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
|
mount /dev/sda1 / : \
|
||||||
tar-in fs.tar / xattrs:true : \
|
tar-in fs.tar / xattrs:true : \
|
||||||
command "grub-install /dev/sda" : \
|
command "grub-install /dev/sda" : \
|
||||||
command update-grub : \
|
command update-grub : \
|
||||||
|
|
Loading…
Reference in a new issue