Compare commits

...

4 Commits

Author SHA1 Message Date
f1c7ee2323 Reduce VM disk size 2020-08-07 17:26:59 -04:00
c26c5ec86b Disable apport crash reporting 2020-08-07 17:26:21 -04:00
9be08467e5 Set QEMU keyboard 2020-08-07 17:24:17 -04:00
97044d59f4 Add git and gparted to the image 2020-08-07 17:23:34 -04:00
3 changed files with 10 additions and 1 deletions

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

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 \

3
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"