summaryrefslogtreecommitdiff
path: root/scripts/nfs
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-06-30 00:05:01 +0000
committerJeff Bailey <jbailey@ubuntu.com>2005-06-30 00:05:01 +0000
commit2c72958bfc090b046e21e9eaad9134235095ad30 (patch)
tree572afb10c1ad810995fbaf51584bde090dd9288d /scripts/nfs
parent8e6c20991ba676ce4c5b46094806c0317afd525a (diff)
downloadinitramfs-tools-2c72958bfc090b046e21e9eaad9134235095ad30.tar.gz
initramfs-tools-2c72958bfc090b046e21e9eaad9134235095ad30.zip
* Use detailed logging now for debian/changelog. We have at least
three people hacking now, and details would probably be useful. * debian/TODO: Update * debian/dirs: Sort and add usr/share/initramfs-tools/hooks * debian/initramfs-tools.examples: Add docs/example_hook and docs/example_hook_cpiogz * debian/initramfs-tools.install: Pretty Print. * debian/rules: Ensure that mkinitramfs is executable * docs/example_script: New file * init: Add concept of 'quiet', be verbose if not specified * mkinitramfs: Do not load script functions until needed Clear up comments / documentation Use DESTDIR instead of TMPDIR Add ability to link in extra hunks into the cpio file Cosmetic cleanups * scripts/functions: Add lsb stype log_FOO_msg functions * scripts/local: Add logging * scripts/nfs: Add logging
Diffstat (limited to 'scripts/nfs')
-rw-r--r--scripts/nfs10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/nfs b/scripts/nfs
index 1e2be2c..8149e86 100644
--- a/scripts/nfs
+++ b/scripts/nfs
@@ -1,9 +1,13 @@
-# NFS filesystem mounting *- shell-script -*-
+# NFS filesystem mounting -*- shell-script -*-
+
+# FIXME This needs error checking
# Paramter: Where the root should be mounted
mountroot ()
{
+ log_begin_msg "Running /scripts/nfs-top"
run_scripts /scripts/nfs-top
+ log_end_msg
modprobe nfs
# For DHCP
@@ -15,7 +19,9 @@ mountroot ()
NFSROOT=${ROOTSERVER}:${ROOTPATH}
fi
+ log_begin_msg "Running /scripts/nfs-premount"
run_scripts /scripts/nfs-premount
+ log_end_msg
if [ ${readonly} = y ]; then
roflag="-o ro"
@@ -25,6 +31,8 @@ mountroot ()
nfsmount ${roflag} ${NFSROOT} ${rootmnt}
+ log_begin_msg "Running /scripts/nfs-bottom"
run_scripts /scripts/nfs-bottom
+ log_end_msg
}