4 Commits

3 changed files with 10 additions and 1 deletions
Split View
  1. +3
    -0
      customize.sh
  2. +5
    -0
      files/customize-inner.sh
  3. +2
    -1
      run.sh

+ 3
- 0
customize.sh View File

@@ -41,6 +41,9 @@ perl -n -i \
-e "print;" \
${ISO}/boot/grub/{grub,loopback}.cfg

# Prevent some packages from being removed after install
perl -n -i -e 'print unless /gparted/' ${ISO}/casper/filesystem.manifest-remove

sudo install -D -m 0644 files/fallback_dns.conf ${FS}/etc/systemd/resolved.conf.d/fallback_dns.conf

if ! [ "$1" == "skip" ] ; then


+ 5
- 0
files/customize-inner.sh View File

@@ -13,6 +13,9 @@ install -D -m 0644 files/nilmbuntu.png /usr/share/xfce4/backdrops/nilmbuntu.png
install -D -m 0644 files/casper.conf /etc/casper.conf
install -D -m 0644 files/hosts.nilm /etc/hosts.nilm

# Disable apport crash reporting
sed -i -s -e 's/enabled=1/enabled=0/g' /etc/default/apport

# Copy hosts for now (although it will get overwritten at boot)
cat /etc/hosts.nilm >> /etc/hosts

@@ -67,7 +70,9 @@ apt -y install \
firefox \
flashrom \
gddrescue \
git \
gnuplot \
gparted \
help2man \
ipython3 \
libnewlib-arm-none-eabi \


+ 2
- 1
run.sh View File

@@ -55,13 +55,14 @@ cfg+=" -usb"
cfg+=" -device usb-tablet"
cfg+=" -nic user"
cfg+=" -vga virtio"
cfg+=" -k en-us"
#cfg+=" -vnc :0"

case $boot in
c)
echo "booting CD with empty disk"
rm -f ${DISK}
dd if=/dev/zero "of=${DISK}" bs=1M count=0 seek=30720
dd if=/dev/zero "of=${DISK}" bs=1M count=0 seek=24576
cfg+=" -drive file=${iso},media=cdrom,if=none,id=cd"
cfg+=" -device virtio-scsi-pci -device scsi-cd,drive=cd"
cfg+=" -boot d"


Loading…
Cancel
Save