Browse Source

full rebuild script

tags/nilmdbuntu-1
Jim Paris 8 years ago
parent
commit
f6fc62504e
2 changed files with 20 additions and 2 deletions
  1. +6
    -2
      cleanup.sh
  2. +14
    -0
      full-rebuild.sh

+ 6
- 2
cleanup.sh View File

@@ -1,7 +1,11 @@
#!/bin/bash

# build the iso
# delete all temporary stuff
. config || exit 0

sudo umount mnt || ture
sudo umount ${FS}/dev/pts || true
sudo umount ${FS}/sys/kernel/security || true
sudo umount ${FS}/sys || true
sudo umount ${FS}/proc || true
sudo umount mnt || true
sudo rm --one-file-system -rf ${FS} ${ISO} ${MNT} ${DISK}

+ 14
- 0
full-rebuild.sh View File

@@ -0,0 +1,14 @@
#!/bin/bash

# make sure this was run as root
if [ $UID -ne 0 ] ; then
echo "Need to be root; trying sudo"
exec sudo $0 "$@"
fi

set -e
./cleanup.sh
./extractiso.sh
./customize.sh
./buildiso.sh


Loading…
Cancel
Save