summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-08-31 21:09:08 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:27 +0100
commit3cd303a7d566b34e5baaa0d80fb809cfbf8a98bd (patch)
treef4b5e73b45ebc13ea90cae1e5b0a56312f93a6e6
parent5177a8939e756da099c71218b1e3d601ae5fc6c7 (diff)
downloadlive-boot-3cd303a7d566b34e5baaa0d80fb809cfbf8a98bd.tar.gz
live-boot-3cd303a7d566b34e5baaa0d80fb809cfbf8a98bd.zip
Adding workaround for aufs issue in kernel versions around 2.6.33.
Directories can't be accessed when read for the first the time, causing a failure when accessing them. This simple workaround solves this issue.
-rwxr-xr-xscripts/live6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live
index a17eb42..e660ac4 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1813,6 +1813,12 @@ mountroot ()
mount --move /live/image /root/live/image
fi
+ # aufs2 in kernel versions around 2.6.33 has a regression:
+ # directories can't be accessed when read for the first the time,
+ # causing a failure for example when accessing /var/lib/fai
+ # when booting FAI, this simple workaround solves it
+ ls /root/* >/dev/null 2>&1
+
maybe_break live-bottom
log_begin_msg "Running /scripts/live-bottom\n"