Booting linux system from chroot: is there a better way to do this?
Fresh3 days ago
Mar 15, 20266861 viewsConfidence Score0%
0%
Problem
I want to set up Grub menu entry to boot into chrooted system (installed chrooted debootstrap to avoid touching existing system too much). Currently I do the following to attain it: Install linux-image and friends inside chrooted environment Manually remaster initramfs to chroot into the system ins…
Error Output
rootmnt=$rootmnt/root/squeeze
...
#exec run-init ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console
exec chroot ${rootmnt} ${ini…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Booting linux system from chroot: is there a better way to do this?
Low Risk
I came across the same issue and ended up writing this to make it work painlessly across different systems (debian, ubuntu currently): Run script to create a new chroot-enabled initrd image from the existing one: The new image will be exactly the sa…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix