Added to Combine Kicksecure ™ Live VMs with Read-only Mode for Virtual Hard Drives chapter VirtualBox in Kicksecure wiki just now:
On Debian bookworm based Kicksecure ™
17(and above) / Newer VirtualBox versions:
- VirtualBox might no longer support
VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly. Settings set thorughVBoxManage setextradataare not officially supported and might be gone at some time such as now.- VirtualBox documentation chapter Special Image Write Modes
mentions
immutable imagesbut this might not be as good asread-only images.
Above two issues are not easy to fix.
Help welcome!
Link to source code:
rootovl vs overlayfs discussed here:
Boot Existing, Usual Linux Installation from Hard Disk in Live Mode / read-only mode with dracut · Issue #1565 · dracutdevs/dracut · GitHub
issue with older build versions still using initramfs-tools and fix:
Merged.
grub-live boot menu entry adding still having issues.
sh -x /etc/grub.d/11_linux_live
+ true grub-live /etc/grub.d/11_linux_live: START
+ set -e
+ set -o allexport
+ GRUB_DEVICE=/dev/disk/by-uuid/
+ unset GRUB_DEVICE_UUID
+ GRUB_DISTRIBUTOR=LIVE mode USER (For daily activities.)
+ GRUB_DISABLE_RECOVERY=true
+ pkg_installed initramfs-tools
+ local package_name
+ package_name=initramfs-tools
+ dpkg-query --show --showformat=${Status}\n initramfs-tools
+ [ deinstall ok config-files = install ok installed ]
+ true grub-live /etc/grub.d/11_linux_live: INFO: initramfs-tools is NOT installed.
+ return 1
+ pkg_installed dracut
+ local package_name
+ package_name=dracut
+ dpkg-query --show --showformat=${Status}\n dracut
+ [ install ok half-configured = install ok installed ]
+ true grub-live /etc/grub.d/11_linux_live: INFO: dracut is NOT installed.
+ return 1
+ echo grub-live /etc/grub.d/11_linux_live: ERROR: Neither initramfs-tools nor dracut is installed. Support for other initrd generators is not implemented. This means that no live mode boot menu entry will be added.
grub-live /etc/grub.d/11_linux_live: ERROR: Neither initramfs-tools nor dracut is installed. Support for other initrd generators is not implemented. This means that no live mode boot menu entry will be added.
+ exit 0
dpkg -l | grep dracut
ii dracut 059-4 all Initramfs generator using udev
ii dracut-core 059-4 amd64 dracut is an event driven initramfs infrastructure (core tools)
ii grub-live-dracut 3:5.8-1 all grub live dracut dependencies
The problem is, the output of dpkg-query is difficult to parse and it’s exceptionally difficult to reliably programatically detect package installation status.
Fixed.
Available in all repositories.