Changes

Jump to: navigation, search

Cd remastering

141 bytes added, 3 months ago
fix module importation to be just module importation, root consoles to user consoles.
Here we will remaster the gentoo minimal cd and inject a funtoo stage3 or undead usb squashfs image into it.
===setup===
{{console|body=
#$##i## mkdir ~/livecdtmp#$##i## mv gentoo-minimal.iso ~/livecdtmp#$##i## cd ~/livecdtmp#$##i## mkdir mnt#$##i## sudo mount -o loop gentoo-minimal.iso mnt#$##i## mkdir extract-cd#$##i## sudo rsync --exclude=/image.squashfs -a mnt/ extract-cd
}}
===decompress===
*the edit directory is the uncompressed squashfs archive, and can be chrooted into if we were to go that route.
{{console|body=
#$##i## sudo unsquashfs mnt/image.squashfs#$##i## sudo mv squashfs-root edit
}}
===merge===
*merge in our gnome stage3 with our gentoo boot disk:
{{console|body=
#$##i## sudo tar --numeric-owner --xattrs --xattrs-include='*' -xpf funtoo-gnome-stage3.tar.xz -C ~/livecdtmp/editfuntoo
}}
*or from a squashfs image.
{{console|body=
#$##i## sudo unsquashfs -f -d ~/livecdtmp/editfuntoo /mnt/filesystem.squashfs
}}
===load modules===
*merge the live cd's kernel modules with our stage3 root:
{{console|body=
#$##i## sudo rsync cp -a r edit/lib/modules/5.10.27-gentoo-x86_64 editfuntoo edit/lib/modules/
}}
===compress===
{{console|body=
#$##i## sudo mksquashfs edit editfuntoo extract-cd/image.squashfs
}}
===burn===
*now we are ready to cd into extract-cd & generate the iso image again:
{{console|body=
#$##i## cd extract-cd#$##i## sudo 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 '/gentoo.efimg' -no-emul-boot -isohybrid-gpt-basdat -o ../funtoo-live.iso .#$##i## sudo isohybrid --uefi ../funtoo-live.iso
}}
730
edits

Navigation menu