Browse Source

More work. This version should at least boot; TODO list bugs

tags/nilmdbuntu-1
Jim Paris 10 years ago
parent
commit
da2cc8db16
5 changed files with 26 additions and 8 deletions
  1. +1
    -0
      .gitignore
  2. +14
    -0
      TODO
  3. +5
    -7
      buildiso.sh
  4. +2
    -1
      extractiso.sh
  5. +4
    -0
      full-rebuild.sh

+ 1
- 0
.gitignore View File

@@ -2,3 +2,4 @@ fs
iso
mnt
*.iso
disk.img

+ 14
- 0
TODO View File

@@ -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?

+ 5
- 7
buildiso.sh View File

@@ -32,15 +32,13 @@ sudo find . -type f -print0 \
| sudo tee md5sum.txt >/dev/null
cd ..

sudo chown -R ${USER} iso

# build CD
cd ${ISO}
REALOUT=$(realpath ${OUTPUT})
sudo xorriso -as mkisofs \
xorriso -as mkisofs \
-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 \
-boot-load-size 4 -boot-info-table \
-eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
.
cd ..
sudo chown jim:jim ${REALOUT}
${ISO}

+ 2
- 1
extractiso.sh View File

@@ -28,9 +28,10 @@ sudo mount -o loop,ro "$ORIG" ${MNT}
# copy data
sudo mkdir ${ISO}
sudo rsync --exclude=/casper/filesystem.squashfs -a ${MNT}/ ${ISO}
sudo umount ${MNT}
sudo chown -R ${USER} ${ISO}
chmod -R u+w ${ISO}

# copy squashfs
sudo unsquashfs -d ${FS} ${MNT}/casper/filesystem.squashfs

sudo umount ${MNT}

+ 4
- 0
full-rebuild.sh View File

@@ -6,7 +6,11 @@ if [ $UID -ne 0 ] ; then
exec sudo $0 "$@"
fi

. config || exit 0

set -e

rm -f ${OUTPUT}
./cleanup.sh
./extractiso.sh
./customize.sh


Loading…
Cancel
Save