You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Etienne Dublé edited this page Oct 20, 2022
·
5 revisions
The most simple way of generating a bootable image using debootstick is to follow the steps listed below.
Generate a chroot environment:
debootstrap --arch=amd64 --variant=minbase focal /tmp/focal_chroot # use different path in case /tmp/ is mounted noexec
Customize it:
$ chroot /tmp/focal_chroot
$ passwd # update root password
$ [...] # other customizations
$ exit # exit from chroot
Generate the bootable image:
$ debootstick /tmp/focal_chroot /tmp/img
Test it with qemu/kvm.
$ cp /tmp/img /tmp/imgtest # let's work on a copy
$ truncate -s 16G /tmp/imgtest # simulate a copy on a 16G-large USB stick
$ kvm -m 2048 -hda /tmp/imgtest # the test itself