Ubuntu LiveCD Creation

From copec
Jump to: navigation, search

Commands

  506  mount --bind /dev /target/dev
  507  mount --bind /dev/pts /target/dev/pts
  508  mount --bind /proc /target/proc
  509  mount --bind /sys /target/sys
  510  chroot /target /bin/bash --login

  491  chroot target dpkg-query -W --showformat='${Package} ${Version}\n' | sudo tee image/casper/filesystem.manifest
  492  cp -v image/casper/filesystem.manifest image/casper/filesystem.manifest-desktop
  496  mksquashfs target image/casper/filesystem.squashfs 
  497  printf $(du -sx --block-size=1 target | cut -f1) > image/casper/filesystem.size
  498  (cd image && find . -type f -print0 | xargs -0 md5sum | grep -v "\./md5sum.txt" > md5sum.txt)
  500  mkisofs -r -V "Ubuntu 16.04 Rescue" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../ubuntu-1604-rescue.iso .

Links