@@ -2,3 +2,4 @@ fs | |||||
iso | iso | ||||
mnt | mnt | ||||
*.iso | *.iso | ||||
disk.img |
@@ -0,0 +1,14 @@ | |||||
- nilmdb crontab | |||||
- terminal, browser on desktop | |||||
- theme: style "Clearlooks", icons "elementary Xfce" | |||||
- nilmdb wallpaper, was "xubuntu-quantal.png" | |||||
- timezone: | |||||
echo 'US/Eastern' > /etc/timezone | |||||
dpkg-reconfigure -f noninteractive tzdata | |||||
- preseed username, password, login automatically? | |||||
- disable 13.04 upgrade notification? | |||||
- install missing locale packages: | |||||
wbritish thunderbird-locale-en thunderbird-locale-en-us | |||||
- install mutt | |||||
- precreate database and streams | |||||
- maybe get rid of splash+quiet in installed image? |
@@ -32,15 +32,13 @@ sudo find . -type f -print0 \ | |||||
| sudo tee md5sum.txt >/dev/null | | sudo tee md5sum.txt >/dev/null | ||||
cd .. | cd .. | ||||
sudo chown -R ${USER} iso | |||||
# build CD | # build CD | ||||
cd ${ISO} | |||||
REALOUT=$(realpath ${OUTPUT}) | |||||
sudo xorriso -as mkisofs \ | |||||
xorriso -as mkisofs \ | |||||
-D -r -V "NilmDBuntu" -cache-inodes -J -l \ | -D -r -V "NilmDBuntu" -cache-inodes -J -l \ | ||||
-input-charset utf-8 -o ${REALOUT} \ | |||||
-input-charset utf-8 -o ${OUTPUT} \ | |||||
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \ | -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \ | ||||
-boot-load-size 4 -boot-info-table \ | -boot-load-size 4 -boot-info-table \ | ||||
-eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \ | -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \ | ||||
. | |||||
cd .. | |||||
sudo chown jim:jim ${REALOUT} | |||||
${ISO} |
@@ -28,9 +28,10 @@ sudo mount -o loop,ro "$ORIG" ${MNT} | |||||
# copy data | # copy data | ||||
sudo mkdir ${ISO} | sudo mkdir ${ISO} | ||||
sudo rsync --exclude=/casper/filesystem.squashfs -a ${MNT}/ ${ISO} | sudo rsync --exclude=/casper/filesystem.squashfs -a ${MNT}/ ${ISO} | ||||
sudo umount ${MNT} | |||||
sudo chown -R ${USER} ${ISO} | sudo chown -R ${USER} ${ISO} | ||||
chmod -R u+w ${ISO} | chmod -R u+w ${ISO} | ||||
# copy squashfs | # copy squashfs | ||||
sudo unsquashfs -d ${FS} ${MNT}/casper/filesystem.squashfs | sudo unsquashfs -d ${FS} ${MNT}/casper/filesystem.squashfs | ||||
sudo umount ${MNT} |
@@ -6,7 +6,11 @@ if [ $UID -ne 0 ] ; then | |||||
exec sudo $0 "$@" | exec sudo $0 "$@" | ||||
fi | fi | ||||
. config || exit 0 | |||||
set -e | set -e | ||||
rm -f ${OUTPUT} | |||||
./cleanup.sh | ./cleanup.sh | ||||
./extractiso.sh | ./extractiso.sh | ||||
./customize.sh | ./customize.sh | ||||