|
|
@@ -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;" \ |
|
|
|