summaryrefslogtreecommitdiff
path: root/scripts/local
diff options
context:
space:
mode:
authorrleigh@debian.org <rleigh@debian.org>2013-05-08 21:48:24 +0100
committerMichael Prokop <mika@debian.org>2014-09-25 08:37:05 +0200
commitcfdafe62c944f6e9ad930527a24d5d11f44c778e (patch)
treed63366e2c465c351a8e18852e09bbbc49d793e50 /scripts/local
parent81956cd735086b978b1e07c7d7efcb19c9e4984d (diff)
scripts: Add overridable indirect functions
Diffstat (limited to 'scripts/local')
-rw-r--r--scripts/local25
1 files changed, 24 insertions, 1 deletions
diff --git a/scripts/local b/scripts/local
index e1da5c7..0c61ca3 100644
--- a/scripts/local
+++ b/scripts/local
@@ -101,7 +101,7 @@ pre_mountroot()
done
}
-mountroot()
+local_mount_root()
{
local_top
@@ -160,3 +160,26 @@ local_mount_fs()
# Mount filesystem
mount ${roflag} -t "${MNT_TYPE}" -o "${MNT_OPTS}" "$MNT_FSNAME" "${rootmnt}${MNT_DIR}"
}
+
+mountroot()
+{
+ local_mount_root
+}
+
+mount_top()
+{
+ # Note, also called directly in case it's overridden.
+ local_top
+}
+
+mount_premount()
+{
+ # Note, also called directly in case it's overridden.
+ local_premount
+}
+
+mount_bottom()
+{
+ # Note, also called directly in case it's overridden.
+ local_bottom
+}