XFCE gentoo derivative: booting from iso
Posted: 31 Oct 2017, 02:53
This is a splitted post from Deepin desktop and other DE or window managers, there was a tangent from the original subjet to boot from iso file on a xfce gentoo derivative named CLDX.
What is wrong on these grub2 entries to boot the cldr.iso, given that /mnt/sda2/1_iso/cldx-17.6-x86_64.iso, so that I can test that gentoo derivative:
What is wrong on these grub2 entries to boot the cldr.iso, given that /mnt/sda2/1_iso/cldx-17.6-x86_64.iso, so that I can test that gentoo derivative:
Code: Select all
menuentry "CLDX" {
insmod part_msdos
insmod ext2
set root=(hd0,2)
set isofile="/1_iso/cldx-17.6-x86_64.iso"
search --no-floppy --file --set=root $isofile
loopback loop $isofile
linux (loop)/boot/vmlinuz from=$isofile login=guest changes=/cldx
initrd (loop)/boot/initrd.xz
}
menuentry "CLDX" {
insmod part_msdos
insmod ext2
set root=(hd0,2)
set iso=/1_isos/
loopback loop ${iso}
linux (loop)/boot/vmlinuz nomodeset vga=791 docache setkmap=fr isoloop=${iso}
initrd (loop)/boot/initrd.xz
}
Code: Select all
root@porteus:~# lsblk
...
sda 8:0 0 298.1G 0 disk
├─sda2 8:2 0 92G 0 part /mnt/sda2
├─sda3 8:3 0 2G 0 part [SWAP]
└─sda1 8:1 0 204.1G 0 part /mnt/sda1
loop7 7:7 0 70.2M 0 loop
loop5 7:5 0 172.1M 0 loop
loop3 7:3 0 79.7M 0 loop
root@porteus:~#