Difference between revisions of "Cd remastering"

From Funtoo
Jump to: navigation, search
(that should about do it.)
(correct from squash for real this time.)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Here we will remaster the gentoo minimal cd and inject a undead usb squashfs image into it.
+
Here we will remaster the gentoo minimal cd and inject a funtoo stage3 or undead usb squashfs image into it.
 
{{console|body=
 
{{console|body=
 
###i## mkdir ~/livecdtmp
 
###i## mkdir ~/livecdtmp
Line 13: Line 13:
  
 
{{console|body=
 
{{console|body=
###i## sudo unsquashfs image.squashfs
+
###i## sudo unsquashfs mnt/image.squashfs
 
###i## sudo mv squashfs-root edit
 
###i## sudo mv squashfs-root edit
 
}}
 
}}
  
*instead were injecting our already mastered root into the cd:
+
*merge in our gnome stage3 with our gentoo boot disk:
 
{{console|body=
 
{{console|body=
###i## cp /mnt/filesystem.squashfs extract-cd/image.squashfs
+
###i## tar --numeric-owner --xattrs --xattrs-include='*' -xpf funtoo-gnome-stage3.tar.xz -C ~/livecdtmp/edit
 +
}}
 +
 
 +
{{console|body=
 +
###i## sudo mksquashfs edit extract-cd/image.squashfs
 +
}}
 +
 
 +
*or from a squashfs image.
 +
{{console|body=
 +
###i## sudo unsquashfs -f -d ~/livecdtmp/editfuntoo /mnt/filesystem.squashfs
 +
###i## sudo rsync -a editfuntoo edit
 
}}
 
}}
  
Line 25: Line 35:
 
{{console|body=
 
{{console|body=
 
###i## cd extract-cd
 
###i## cd extract-cd
###i## grub-mkrescue -J -R -V "${ISO_VOLUME}" -quiet -o ../funtoo-live.iso .
+
###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 .
 
}}
 
}}

Revision as of 18:32, June 7, 2021

Here we will remaster the gentoo minimal cd and inject a funtoo stage3 or undead usb squashfs image into it.

root # mkdir ~/livecdtmp
root # mv gentoo-minimal.iso ~/livecdtmp
root # cd ~/livecdtmp
root # mkdir mnt
root # sudo mount -o loop gentoo-minimal.iso mnt
root # mkdir extract-cd
root # sudo rsync --exclude=/image.squashfs -a mnt/ extract-cd
  • the edit directory is the uncompressed squashfs archive, and can be chrooted into if we were to go that route.
root # sudo unsquashfs mnt/image.squashfs
root # sudo mv squashfs-root edit
  • merge in our gnome stage3 with our gentoo boot disk:
root # tar --numeric-owner --xattrs --xattrs-include='*' -xpf funtoo-gnome-stage3.tar.xz -C ~/livecdtmp/edit
root # sudo mksquashfs edit extract-cd/image.squashfs
  • or from a squashfs image.
root # sudo unsquashfs -f -d ~/livecdtmp/editfuntoo /mnt/filesystem.squashfs
root # sudo rsync -a editfuntoo edit
  • now we are ready to cd into extract-cd & generate the iso image again:
root # cd extract-cd
root # 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 .