The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "User:Pnoecker/Undead USB Install/undead2live"
m (auto filesystem selection in /etc/fstab) |
(add libisoburn) |
||
Line 4: | Line 4: | ||
{{console|body= | {{console|body= | ||
###i## emerge cdrtools squashfs-tools isomaster | ###i## emerge cdrtools squashfs-tools isomaster libisoburn | ||
}} | }} | ||
Revision as of 19:22, April 25, 2021
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 libisoburn
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
edit /mnt/funtoo/etc/fstab file system's from ext4 & vfat to auto so we can have it auto load squashfs.
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.
maybe we can get our grub loading the squashed image with a command like this.
root # dd if=/mnt/filesystem.squashfs of=/dev/funtoo2