Volume containing apkovl is not remounted according to the apkovl's /etc/fstab entry
- make a new VM, attach the alpine-virtual iso and a blank virtual disk as /dev/sda
- run setup-alpine, selecting a data-only install, mounting to /var
- set LBU_BACKUPDIR=/var and run lbu commit
- reboot and observer that /dev/sda2 is mounted to /media/sda2, not /var
Cause: The initramfs /init script is supposed to unmount the device that the apkovl was found on, after it has been unpacked. There is still logic to unmount a device stored in $ovl_unmount, but commit ba27888b4576ceab7413ab9104d0aeda50990832 (which moved the apkovl search logic out to nlplug-findfs) removed the last line that set that variable, and as far as I can tell even the old code never unmounted non-usb devices correctly.
Fix: Set $ovl_unmount to the apkovl device unless it is used as the sysroot? (This might cause a conflict if the apkovl is stored on a boot_repository device; IDK.)
(from redmine: issue id 7780, created on 2017-09-01)