• Philip Müller's avatar
    [calamares] remove writing swap to /etc/fstab in live-mode · 5534f021
    Philip Müller authored
    Finally Teo found a well hidden bug which prevent **Calamares** installing Manjaro correctly in some occations when **swap** is present:
    
    [08.06.2016 17:44:51] Teo Mrnjavac: hello
    [08.06.2016 17:45:30] Teo Mrnjavac: I just managed to find a very tricky bug which came up from a combination of systemd and manjaro-tools, and inconsistently but way too often results in Calamares install failure
    [08.06.2016 17:45:51] Teo Mrnjavac: basically, manjaro-tools writes a swap line into /etc/fstab on the live system
    [08.06.2016 17:46:25] Teo Mrnjavac: because of this, systemd tries to be way fucking clever and keeps remounting whatever swap it finds in fstab and detects as fs type 82 even when you manually swapoff
    [08.06.2016 17:46:48] Teo Mrnjavac: Cala does swapoff, systemd mounts it back on, Cala does swapoff, systemd mounts it back on, und so weiter
    [08.06.2016 17:47:44] Teo Mrnjavac: I don't blame manjaro tools, it makes sense to use swap if you can, but systemd keeps remounting it and there's no easy way to make it stop
    [08.06.2016 17:48:33] Teo Mrnjavac: we could remove that systemd unit, but IMO it's much easier to go into util-live.sh and yank out line 349
    5534f021