Many problems with live-rw partition
Either I'm doing something wrong or it really doesn't work all that
well...
Situation: I build usb-hdd images with live-helper, write to flash
disk, add primary partition after the first and format that with ext2
labelled "live-rw". Among the boot options is "persistence".
live-helper is from sid, live-initramfs is current git.
It starts with not booting through and dropping into a shell. There's
two issues. First, it doesn't use the busybox mount in
scripts/live-helper but the normal mount binary, which fails without a
filesystem type given. I fixed that by adding
'-t $(get_fstype "${dev}")' but then comes the second issue, remounting
ro isn't possible because the filesystem (the live-rw one) is busy.
It is used in the aufs after all, so it doesn't work. My fix for that
one was not triggering the remount ro attempt by commenting the try_snap
calls in scripts/live since I do not need snapshot files here.
Once I get it to boot without intervention, other issues crop up. For
one, /dev is in /live/cow and therefore saved unnecessarily. Also,
/etc/hosts and /etc/fstab appear to be appended with initial
configuration unconditionally, meaning that they grow longer with every
boot. In the case of fstab it leads to tmpfs being mounted on /tmp
multiple times.
Information on how to proceed would be appreciated.
Reply to: