From: Michael Prokop Date: Tue, 31 Aug 2010 19:09:08 +0000 (+0200) Subject: Adding workaround for aufs issue in kernel versions around 2.6.33. X-Git-Tag: debian/2.0.1-1~2 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=7c264d525e057a829a16188899c8135c9a8bc9df 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. --- 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"