[Fai-commit] r6274 - trunk/lib
Thomas Lange
lange at alioth.debian.org
Fri Jan 21 13:07:32 UTC 2011
Author: lange
Date: 2011-01-21 13:07:27 +0000 (Fri, 21 Jan 2011)
New Revision: 6274
Modified:
trunk/lib/fai-mount-disk
Log:
fix for mounting of partitions based on fstab
Modified: trunk/lib/fai-mount-disk
===================================================================
--- trunk/lib/fai-mount-disk 2011-01-19 23:20:05 UTC (rev 6273)
+++ trunk/lib/fai-mount-disk 2011-01-21 13:07:27 UTC (rev 6274)
@@ -1,16 +1,18 @@
#! /bin/bash
# $Id$
-# Copyright (c) 2002-2007 by Thomas Lange
+# Copyright (c) 2002-2010 by Thomas Lange
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fstab_mount() {
if [ $fstabcount -eq 1 ]; then
- # mount the root partition; then mount the rest according to fstab found
+
+ # save fstab
+ cp $FAI_ROOT/$fstabpart/etc/fstab /tmp
umount_local_disks
- mount -o ro /dev/$fstabpart $FAI_ROOT
- mount2dir $FAI_ROOT $FAI_ROOT/etc/fstab 0 ro
+ # mount according to fstab saved
+ mount2dir $FAI_ROOT /tmp/fstab 0 ro
df
fi
[ $fstabcount -eq 0 ] && echo "No /etc/fstab found"
More information about the Fai-commit
mailing list