注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

User:Pnoecker/Undead USB Install/undead2live

From Funtoo
< User:Pnoecker‎ | Undead USB Install
Revision as of 13:55, April 15, 2021 by Pnoecker (talk | contribs) (post what i have so far on pushing undead to a live cd.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

https://help.ubuntu.com/community/LiveCDCustomization#Assembling_the_file_system

make an undead usb from a stage 3 containing networkmanager, xfce4, x11-xorg, fchroot, slim, with auto login root terminals. setup slim to boot root so the entire undead key does not have a password. tidy up the undead key delete the stage3 tarball, delete the sources directory.

root # emerge cdrtools squashfs-tools isomaster

mount your undead usb key, but not dev sys or any of the other stuff because were going to package it with squashfs.

root # mount /dev/funtoo2 /mnt/funtoo
root # mount /dev/funtoo1 /mnt/funtoo/boot
root # mksquashfs /mnt/funtoo /mnt/filesystem.squashfs

using isomaster you can insert /mnt/filesystem.squashfs into an xubuntu live cd. virtualbox will boot it, real hardware will not. it probably needs eltorito.img or isolinux.bin setup to chainload grub or whatever. the idea is were inserting our chroot into another live cd's chroot location.

xubuntu has a casper/ directory in the iso that contains a file called filesystem.squashfs, delete their chroot, insert ours. write iso. cheat to win has drawbacks, they're using overlayfs so they're overlaying files on the filesystem somewhere so another choice of live cd to modify is probably a good idea.