Browse Source

Misc scattered fixes

tags/nilmdbuntu-1
Jim Paris 10 years ago
parent
commit
bc27c96a50
5 changed files with 18 additions and 7 deletions
  1. +5
    -2
      README
  2. +2
    -1
      buildiso.sh
  3. +6
    -0
      customize-inner.sh
  4. +4
    -3
      customize.sh
  5. +1
    -1
      full-rebuild.sh

+ 5
- 2
README View File

@@ -6,8 +6,6 @@ https://
plus a lot of other info, like ubiquity and casper source code, and
additions for making the resulting iso EFI bootable.

Run things in generally this order:

extractiso.sh
extract the original iso

@@ -28,3 +26,8 @@ run.sh -d

cleanup.sh
remove everything but the isos


SHORT VERSION:
time sudo sh -c "env BUILD_CONFIG=12.10 ./full-rebuild.sh"
time sudo sh -c "env BUILD_CONFIG=13.04 ./full-rebuild.sh"

+ 2
- 1
buildiso.sh View File

@@ -33,7 +33,8 @@ sudo find ${ISO} -type f -print0 \
| sudo xargs -0 md5sum \
| sed -e "s, ${ISO}/iso, .," \
| grep -v isolinux/boot.cat \
| sudo tee md5sum.txt >/dev/null
| grep -v md5sum.txt \
| sudo tee ${ISO}/md5sum.txt >/dev/null

sudo chown -R ${USER} ${ISO}



+ 6
- 0
customize-inner.sh View File

@@ -324,3 +324,9 @@ sed -i -s -e \
cat >/etc/firefox/syspref.js <<"EOF"
pref("browser.startup.homepage", "http://nilmdb.com/");
EOF
cat >/etc/xul-ext/homepage.properties <<"EOF"
browser.startup.homepage=http://nilmdb.com/
EOF
cat >/etc/xul-ext/ubufox.js <<"EOF"
pref("browser.startup.homepage", "file:/etc/xul-ext/homepage.properties");
EOF

+ 4
- 3
customize.sh View File

@@ -42,11 +42,11 @@ d-i passwd/auto-login boolean true
EOF

# Set up isolinux how we want by editing its config
TRY="Try NilmDBuntu ${VERSION}, with option to install"
TRY="Boot ^NilmDBuntu ${VERSION}"
cp splash.png ${ISO}/isolinux/splash.png
perl -n -i \
-e '$n=1 if /^label/; $n=2 if /^label live-install/; next if $n==2;' \
-e "s/menu label.*Try.*/menu label ^$TRY/g;" \
-e "s/menu label.*(Try|NilmDBuntu).*/menu label $TRY/g;" \
-e "s,preseed/.*[.]seed,preseed/nilmdbuntu.seed,g;" \
-e "s/ quiet splash//g;" \
-e "print;" \
@@ -54,10 +54,11 @@ perl -n -i \
sed -i -s -e "s/^ui gfxboot/# ui gfxboot/g;" ${ISO}/isolinux/isolinux.cfg

# Set up grub similarly
TRY="Boot NilmDBuntu ${VERSION}"
perl -n -i \
-e "next if /menuentry \"Install/../^}$/;" \
-e "next if /menuentry \"OEM install/../^}$/;" \
-e "s/menuentry \"Try.*\" {/menuentry \"${TRY}\" {/g;" \
-e "s/menuentry \"(Try|NilmDBuntu).*\" {/menuentry \"${TRY}\" {/g;" \
-e "s,preseed/.*[.]seed,preseed/nilmdbuntu.seed,g;" \
-e "s/ quiet splash//g;" \
-e "print;" \


+ 1
- 1
full-rebuild.sh View File

@@ -15,7 +15,7 @@ rm -f ${OUTPUT}
./cleanup.sh
for d in ${ORIG} ${OUTPUT} ${DISK} ; do
mkdir -p $(dirname $d)
chown ${USER} $d
chown ${USER} $(dirname $d)
done
./extractiso.sh
./customize.sh


Loading…
Cancel
Save