From aceacf2f8596069e6e66e18fb6fa828efa2feecb Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 12 Sep 2023 22:54:51 +0200 Subject: [PATCH] Modify kernfs scripts to be able to run them twice Those scripts could only be run once, because mount errors out if it tries to mount an already mounted fs (or unmount a non mounted fs). This changes generation of the scripts so that any mount is preceded with "mountpoint -q || ", and any umount is preceded with "mountpoint -q && ". --- common/kernfs.xsl | 62 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/common/kernfs.xsl b/common/kernfs.xsl index f47f665..d7043a0 100644 --- a/common/kernfs.xsl +++ b/common/kernfs.xsl @@ -16,9 +16,69 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + mountpoint -q + + || + + + + + + + + + mountpoint -q + + && + + + + + + + + + + + + + + + + + + + + +