-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·23 lines (14 loc) · 1008 Bytes
/
build.sh
File metadata and controls
executable file
·23 lines (14 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
sudo umount edit/dev
sudo chmod +w extract/mnt/casper/filesystem.manifest
sudo chroot edit dpkg-query -W --showformat='${Package} ${Version}n' | sudo tee extract/mnt/casper/filesystem.manifest
sudo cp extract/mnt/casper/filesystem.manifest extract/mnt/casper/filesystem.manifest-desktop
sudo sed -i '/ubiquity/d' extract/mnt/casper/filesystem.manifest-desktop
sudo sed -i '/casper/d' extract/mnt/casper/filesystem.manifest-desktop
sudo rm extract/mnt/casper/filesystem.squashfs
sudo mksquashfs edit extract/mnt/casper/filesystem.squashfs -b 1048576 -comp xz -Xdict-size 100%
printf $(sudo du -sx --block-size=1 edit | cut -f1) | sudo tee extract/mnt/casper/filesystem.size
cd extract/mnt
sudo rm md5sum.txt
find -type f -print0 | sudo xargs -0 md5sum | grep -v isolinux/boot.cat | sudo tee md5sum.txt
sudo genisoimage -D -r -V "$IMAGE_NAME" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../lc_16.04_alpha_0.1.iso .