diff options
| author | Jesse Hathaway <jesse@mbuki-mvuki.org> | 2007-10-30 14:10:58 -0400 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | bf36396d635f664157bef6448040c967dc96d563 (patch) | |
| tree | 351a2408531cd27cd5b68ad9dffa861d933c1943 /scripts/live-bottom | |
| parent | 5ebecb1695a42c5497850e9d5a2e4ee351148562 (diff) | |
| download | live-boot-bf36396d635f664157bef6448040c967dc96d563.tar.gz live-boot-bf36396d635f664157bef6448040c967dc96d563.zip | |
add support for mounting the cow device on an nfs volume
Diffstat (limited to 'scripts/live-bottom')
| -rwxr-xr-x | scripts/live-bottom/12fstab | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab index 3d036c9..ca83626 100755 --- a/scripts/live-bottom/12fstab +++ b/scripts/live-bottom/12fstab @@ -5,6 +5,7 @@ # initramfs-tools header PREREQ="" +FSTAB=/root/etc/fstab prereqs() { @@ -27,16 +28,23 @@ then exit 0 fi -log_begin_msg "Configuring fstab..." +if [ -s ${FSTAB} ] +then + log_begin_msg "Not touching preexisting fstab..." +else + log_begin_msg "Configuring fstab..." + + cat >> ${FSTAB} <<-EOF + # /etc/fstab: static file system information. + # + # <file system> <mount point> <type> <options> <dump> <pass> + ${UNIONTYPE} / ${UNIONTYPE} rw 0 0 + tmpfs /tmp tmpfs nosuid,nodev 0 0 + EOF +fi # live-initramfs script -FSTAB=/root/etc/fstab - -cat >> ${FSTAB} << EOF -${UNIONTYPE} / ${UNIONTYPE} rw 0 0 -tmpfs /tmp tmpfs nosuid,nodev 0 0 -EOF # disabled for now #rm -f /root/etc/rcS.d/S*checkroot.sh |
