core-agent-linux/init
Marek Marczykowski-Górecki 9f9c3c56fc
Use online resize2fs, and run filesystem check only when needed
When trying offline resize2fs, it require running fsck first, which
takes time, especially on large volumes. And in most cases, resize2fs
will notice that no action is needed - after wasting some time on fsck.
To remedy this, use resize2fs in online mode (on mounted filesystem).
And drop fsck call if it fails (filesystem is already mounted
read-write, running fsck isn't good idea).

But do not remove fsck call completely - still call it, but without '-f'
flag, so it run actual check only when really needed (unclean shutdown,
last check far in the past etc).

Fixes QubesOS/qubes-issues#979
Fixes QubesOS/qubes-issues#2583
2017-02-27 04:21:59 +01:00
..
control-printer-icon.sh Clean up early initialization and setup of /rw 2016-10-23 20:19:51 +00:00
functions Merge remote-tracking branch 'qubesos/pr/24' 2016-11-17 09:33:02 +01:00
setup-dvm-home.sh Initialize home_volatile for disposable VMs. 2016-11-13 21:20:46 +00:00
setup-rw.sh Use online resize2fs, and run filesystem check only when needed 2017-02-27 04:21:59 +01:00
setup-rwdev.sh Use online resize2fs, and run filesystem check only when needed 2017-02-27 04:21:59 +01:00