Talk:Undead USB Install/undead2live

From Funtoo
Revision as of 13:10, May 6, 2021 by Pnoecker (talk | contribs) (trying inserting squashfs in initramfs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

to deploy undead usb from filesystem.squashfs make a MBR dos type usb key with 128m bootable type ef on the first partition, and 8+gb type 83 on the second partition.

run 01 target, run 02 cfdisk, run 03 bootstrap area36 script. then unwrap the squashed area36 into the freshly partitioned usb key. https://code.funtoo.org/bitbucket/users/pnoecker/repos/666/browse

root # unsquashfs -f -d /mnt/funtoo filesystem.squashfs

chroot and install grub again.

xorrisofs cd generation via extracted disks.

root # xorrisofs -D -r -V "test" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e '/boot/grub/efi.img' -no-emul-boot -isohybrid-gpt-basdat -o ../custom.iso .
cd ..
isohybrid -u custom.iso

xorriso having a iso report the command it would take to build it.

root # xorriso -indev custom.iso -report_system_area as_mkisofs
root # sed '/MODULES_FS/ s/\"$/ squashfs\"/' -i /usr/share/genkernel/arch/$(arch)/modules_load
root # emerge debian-sources
   Note

truncate seems to break MBR booting

root # truncate -s 1200K eltorito.img