summaryrefslogtreecommitdiff
path: root/scripts/local
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-06-14 21:39:18 +0000
committerJeff Bailey <jbailey@ubuntu.com>2005-06-14 21:39:18 +0000
commit43528be821f50d8676ba29d7e51be6915d74cfae (patch)
tree92a2d45e2fc1672709b1b75fdbe7332375bbb11d /scripts/local
parent433e18f414f120c3c28568114ea6854167fe7c74 (diff)
downloadinitramfs-tools-43528be821f50d8676ba29d7e51be6915d74cfae.tar.gz
initramfs-tools-43528be821f50d8676ba29d7e51be6915d74cfae.zip
export command line parameters to run scripts. honour commandline readonly/readwrite parameters for nfs. Release initramfs 0.8
Diffstat (limited to 'scripts/local')
-rw-r--r--scripts/local8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/local b/scripts/local
index b322f09..cf9e331 100644
--- a/scripts/local
+++ b/scripts/local
@@ -14,8 +14,14 @@ mountroot ()
run_scripts /scripts/local-premount
+ if [ ${readonly} = y ]; then
+ roflag=-r
+ else
+ roflag=-w
+ fi
+
# Mount root
- mount ${ro} -t ${FSTYPE} ${ROOT} ${rootmnt}
+ mount ${roflag} -t ${FSTYPE} ${ROOT} ${rootmnt}
run_scripts /scripts/local-bottom
}