openSUSE / combustion

Configure MicroOS on the first boot
GNU General Public License v2.0
15 stars 7 forks source link

Fix failure if /sysroot not mounted and no config provided #8

Closed Vogtinator closed 1 year ago

Vogtinator commented 1 year ago

If /sysroot was not mounted previously (like by ignition-mount.service) and no config was provided, combustion would not start sysroot.mount but attempt to unmount it during exit, causing a fatal error.

Just skip the unmount during cleanup if it's not mounted.