From Matthew's comment in our blog post about Docker 1.6.0.
I have encountered a "feature" of the firstboot.sh script. I'd copied some things to a jump drive, pulled the old microsd, put in today's release & booted with the usb jump drive in.
Unfortunately, it ran into the following in firstboot.sh:
# Expand filesystem, but only on real device, not in QEMU
if [ ! -e /dev/sda ]; then
echo 'Expanding rootfs ...' >> /dev/kmsg
raspi-config --expand-rootfs
echo 'Expand rootfs done' >> /dev/kmsg
sleep 5
reboot
fi
The usb drive was mounted as /dev/sda, so the rootfs expansion didn't occur. Perhaps something like this might be better:
if [[ -n "`df |grep mmcblk0p1`" ]]; then
# resize here
fi
From Matthew's comment in our blog post about Docker 1.6.0.
I have encountered a "feature" of the firstboot.sh script. I'd copied some things to a jump drive, pulled the old microsd, put in today's release & booted with the usb jump drive in.
Unfortunately, it ran into the following in firstboot.sh:
The usb drive was mounted as /dev/sda, so the rootfs expansion didn't occur. Perhaps something like this might be better: