Difference between revisions of "Ubuntu LiveCD Creation"

From copec
Jump to: navigation, search
(Created page with "[https://help.ubuntu.com/community/LiveCDCustomizationFromScratch https://help.ubuntu.com/community/LiveCDCustomizationFromScratch] [https://github.com/zfsonlinux/pkg-zfs/wik...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://help.ubuntu.com/community/LiveCDCustomizationFromScratch https://help.ubuntu.com/community/LiveCDCustomizationFromScratch]
+
== Commands ==
 +
<pre>
 +
  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
  
[https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-to-a-Native-ZFS-Root-Filesystem https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-to-a-Native-ZFS-Root-Filesystem]
+
  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 .
 +
</pre>
  
[http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/chroot.html http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/chroot.html]
+
== Links ==
 +
* [https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall]
 +
* [http://manpages.ubuntu.com/manpages/xenial/man7/casper.7.html http://manpages.ubuntu.com/manpages/xenial/man7/casper.7.html]
 +
* [https://help.ubuntu.com/community/LiveCDCustomizationFromScratch https://help.ubuntu.com/community/LiveCDCustomizationFromScratch]
 +
* [https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-to-a-Native-ZFS-Root-Filesystem https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-to-a-Native-ZFS-Root-Filesystem]
 +
* [http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/chroot.html http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/chroot.html]
 +
* [http://www.pendrivelinux.com/using-unetbootin-to-create-a-linux-usb-from-linux/ http://www.pendrivelinux.com/using-unetbootin-to-create-a-linux-usb-from-linux/]
 +
* [http://unetbootin.github.io/ http://unetbootin.github.io/]

Latest revision as of 11:39, 18 November 2017

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