Compare commits
5 commits
070a9cecb7
...
5fa2457fd5
Author | SHA1 | Date | |
---|---|---|---|
5fa2457fd5 | |||
8e6f183b3f | |||
97e6981ddc | |||
22c0ba45a0 | |||
829df60242 |
1 changed files with 11 additions and 8 deletions
19
mmdebstrap
19
mmdebstrap
|
@ -6817,12 +6817,14 @@ Create a bootable USB Stick that boots into a full Debian desktop:
|
|||
END
|
||||
# You can use $(sudo blockdev --getsize64 /dev/sdXXX) to get the right
|
||||
# image size for the target medium in bytes
|
||||
$ guestfish -N debian-unstable.img=disk:8G -- part-disk /dev/sda mbr : \
|
||||
part-set-bootable /dev/sda 1 true : mkfs ext2 /dev/sda1 : \
|
||||
set-label /dev/sda1 rootfs : mount /dev/sda1 / : \
|
||||
$ guestfish -N debian-unstable.img=disk:8G -- \
|
||||
part-disk /dev/sda mbr : \
|
||||
part-set-bootable /dev/sda 1 true : \
|
||||
set-label /dev/sda1 rootfs : \
|
||||
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
|
||||
tar-in debian-unstable.tar / xattrs:true : \
|
||||
upload /usr/lib/SYSLINUX/mbr.bin /mbr.bin : \
|
||||
copy-file-to-device /mbr.bin /dev/sda size:440 : rm /mbr.bin : \
|
||||
upload /usr/lib/EXTLINUX/mbr.bin /boot/mbr.bin : \
|
||||
copy-file-to-device /boot/mbr.bin /dev/sda size:440 : \
|
||||
extlinux / : copy-in extlinux.conf / : sync : umount / : shutdown
|
||||
$ qemu-system-x86_64 -m 1G -enable-kvm debian-unstable.img
|
||||
$ sudo dd if=debian-unstable.img of=/dev/sdXXX status=progress
|
||||
|
@ -6857,10 +6859,11 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
|
|||
$ guestfish -N debian-unstable.img=disk:8G -- \
|
||||
part-disk /dev/sda mbr : \
|
||||
part-set-bootable /dev/sda 1 true : \
|
||||
mkfs ext2 /dev/sda1 : mount /dev/sda1 / : \
|
||||
mkfs ext4 /dev/sda1 : mount /dev/sda1 / : \
|
||||
tar-in debian-unstable.tar / xattrs:true : \
|
||||
extlinux / : copy-in extlinux.conf / : \
|
||||
sync : umount / : shutdown
|
||||
upload /usr/lib/EXTLINUX/mbr.bin /boot/mbr.bin : \
|
||||
copy-file-to-device /boot/mbr.bin /dev/sda size:440 : \
|
||||
extlinux / : copy-in extlinux.conf / : sync : umount / : shutdown
|
||||
$ qemu-img convert -O qcow2 debian-unstable.img debian-unstable.qcow2
|
||||
|
||||
As a debootstrap wrapper to run it without superuser privileges but using Linux
|
||||
|
|
Loading…
Reference in a new issue