Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

General Debian • Immutable Bookworm

$
0
0
The following is an example of the grub.cfg file that we are using for booting an immutable Sid* live from a usb stick:

Code:

source /boot/grub/config.cfgtimeout=10# Live bootmenuentry "Debian Sid" {linux/live/vmlinuz-6.10.11-amd64 boot=live components quiet splash noresume noejectinitrd/live/initrd.img-6.10.11-amd64}menuentry "Debian Sid from ISO" {set iso_path="/debian-live-sid-2-amd64-gnome.iso"        search --no-floppy --label --set=iso_partition iso_usbrmmod tpmloopback loop ($iso_partition)$iso_pathlinux (loop)/live/vmlinuz-6.10.11-amd64 boot=live  components noresume noeject quiet splash findiso=$iso_pathinitrd (loop)/live/initrd.img-6.10.11-amd64}menuentry "Debian Sid with Persistence" {linux/live/vmlinuz-6.10.11-amd64 boot=live persistence persistence-label=persistence_13  components quiet splash noresume noejectinitrd/live/initrd.img-6.10.11-amd64}menuentry "Debian Sid from ISO with persistence" {set iso_path="/debian-live-sid-2-amd64-gnome.iso"        search --no-floppy --label --set=iso_partition iso_usbrmmod tpmloopback loop ($iso_partition)$iso_pathlinux (loop)/live/vmlinuz-6.10.11-amd64 boot=live persistence persistence-label=persistence_13b components noresume noeject quiet splash findiso=$iso_pathinitrd (loop)/live/initrd.img-6.10.11-amd64}
The mult-boot config allows the live-usb creator to iteratively adjust the content of the immutable Sid to suit the target user(s). End users only need the first menuentry thus making this live usb extremely simple. Similar configuration (with slight modifications) can be appended to the grub multiple-boot structure of an hd to emulate an immutable but also iteratively adjustable live Sid "usb" without needing an actual usb.

* The reason that I use Sid here is that our students typically purchased a new computer when they started the class--or have already purchased a new Windows PC but don't know how to use it. For most of the experts on this forum, Bookworm, because of its maturity, probably would make a better candidate for use as an immutable OS.

Statistics: Posted by pwzhangzz — 2024-10-01 17:28 — Replies 47 — Views 9104



Viewing all articles
Browse latest Browse all 3567

Trending Articles