Unmount file systems fails during install

Exactly what it says, install appeared to run ok, up until the unmount phase then it popped up a warning that the install had failed.

Just reporting in case it’s an issue with the installer that needs fixed.

    Starting job "Unmount file systems." ( 48 / 48 ) 
2022-10-08 - 11:36:05 [6]: Calamares::JobResult unmountTargetMounts(const QString&)
    Read 12 entries from "/tmp/calamares-root-13j9mrsj/" 
2022-10-08 - 11:36:05 [6]:     .. Running ("umount", "-lv", "/tmp/calamares-root-13j9mrsj/var/log") 
2022-10-08 - 11:36:05 [6]:     .. Target cmd: ("umount", "-lv", "/tmp/calamares-root-13j9mrsj/var/log") Exit code: 32 output:
 umount: /tmp/calamares-root-13j9mrsj/var/log: not mounted.
2022-10-08 - 11:36:05 [6]:     .. Running ("udevadm", "settle") 
2022-10-08 - 11:36:05 [6]:     .. Running ("sync") 
2022-10-08 - 11:36:05 [1]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    ERROR: Installation failed: "Could not unmount target system." 
2022-10-08 - 11:36:05 [6]:     .. - message: "Could not unmount target system." 
2022-10-08 - 11:36:05 [6]:     .. - details: The device '/dev/sda5' is mounted in the target system. It is mounted at '/tmp/calamares-root-13j9mrsj/var/log'. The device could not be unmounted.
2022-10-08 - 11:36:05 [6]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
    Calamares will quit when the dialog closes. 
2022-10-08 - 11:36:05 [6]: QML Component (default slideshow) deactivated
2022-10-08 - 11:36:05 [6]: void Config::doNotify(bool, bool)
    Notification not sent; completion: failed

Install Log: https://termbin.com/cgea
HW Info: https://clbin.com/7ZMcD

Maybe it needs some fix on Calamares configuration.
Logging/copying log files to the installed /var/log subvolume seems to be asynchronus, and probably not finished, when unmounting starts to initiate.

    Starting job "Saving files for later..." ( 46 / 48 ) 
2022-10-08 - 11:36:05 [6]:     .. Running ("chown", "root:wheel", "/tmp/calamares-root-13j9mrsj/var/log/Calamares.log") 
2022-10-08 - 11:36:05 [6]: virtual void Calamares::JobThread::run()
    Starting job "copy logs and files from host to target" ( 47 / 48 ) 
2022-10-08 - 11:36:05 [6]:     .. Running ("/bin/sh", "-c", "cp /home/liveuser/endeavour-install.log /tmp/calamares-root-13j9mrsj/var/log/endeavour-install.log") 

It could be something with permissions set to root, just before the next copy command is starting, with normal permissions(unlikelly, as it should be root user ).

Anyway, it needs some investigation by the team.

Did you try rebooting? Unmounting is the last thing it does so in theory the install should have been done at that point.

The logging isn’t going there. The logs are copied there are the end of the install.

1 Like

Did you try rebooting?

Yes, I guessed from the logs that that might be the case, but it hung on reboot. Not sure if that was related, but I gave up at that point. I was just installing too see how the install process was anyway.