Implement preMountHook & postMountHook

These options previously existed but had no effect. Now they are
implemented. They only affect mount during disko’s filesystem creation,
not during any later mounts.

Adding test case to existing “complex” example and test mostly because
couldn’t think of any better place to put it.
This commit is contained in:
Andrew Marshall authored and mergify[bot] committed 2023-11-12 09:36:50 +00:00
1 parent 01ec6024d6
commit 2d7d77878c
3 files changed
+15 -2

No files matched your search

+3
View File
@@ -110,6 +110,9 @@
mountOptions = [
"defaults"
];
postMountHook = ''
touch /mnt/ext4_on_lvm/file-from-postMountHook
'';
};
};
raid1 = {