Browse Source

Small bugfixes and tweaks

tags/nilmbuntu-5
Jim Paris 7 years ago
parent
commit
f4f36e3c16
3 changed files with 5 additions and 4 deletions
  1. +3
    -2
      customize-inner.sh
  2. +1
    -1
      enter.sh
  3. +1
    -1
      run.sh

+ 3
- 2
customize-inner.sh View File

@@ -204,8 +204,9 @@ EOF
# is the same as what we have in the preseed file and casper.conf
adduser --gecos "NILM User" --disabled-password nilm

# # fix up all permissions in git dir, so nilmdb user can play with it later
# chown -R nilmdb:nilmdb /home/nilmdb/git
# Make sure locate databases are up-to-date
/etc/cron.daily/mlocate
/etc/cron.daily/dlocate

# Make sure initramfs was regenerated with casper changes
update-initramfs

+ 1
- 1
enter.sh View File

@@ -105,7 +105,7 @@ start_container
run "resolvconf --disable-updates"
run "echo 'nameserver 8.8.8.8' > /run/resolvconf/resolv.conf"
run "echo '127.0.0.1 localhost' > /etc/hosts"
run "cat /etc/hosts.nilm >> /etc/hosts"
run "cat /etc/hosts.nilm >>/etc/hosts 2>/dev/null || true"
run "hostnamectl --transient set-hostname nilmbuntu"

#run "dbus-uuidgen > /var/lib/dbus/machine-id"


+ 1
- 1
run.sh View File

@@ -59,7 +59,7 @@ case $boot in
c)
echo "booting CD with empty disk"
rm -f ${DISK}
dd if=/dev/zero "of=${DISK}" bs=1M count=0 seek=10240
dd if=/dev/zero "of=${DISK}" bs=1M count=0 seek=30720
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