Difference between revisions of "User:Pnoecker/Undead USB Install/undead2live"

From Funtoo
Jump to navigation Jump to search
(post what i have so far on pushing undead to a live cd.)
 
m (auto filesystem selection in /etc/fstab)
Line 13: Line 13:
###i## mount /dev/funtoo1 /mnt/funtoo/boot
###i## 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.


{{console|body=
{{console|body=
Line 21: Line 23:


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.
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.
{{console|body=
###i## dd if=/mnt/filesystem.squashfs of=/dev/funtoo2
}}

Revision as of 03:31, April 16, 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

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