Skip to content

Commit

Permalink
Adding workaround for aufs issue in kernel versions around 2.6.33.
Browse files Browse the repository at this point in the history
Directories can't be accessed when read for the first the time,
causing a failure when accessing them. This simple workaround
solves this issue.
  • Loading branch information
Michael Prokop authored and daniel-baumann committed Sep 26, 2010
1 parent 483e667 commit 146ac6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/live
Expand Up @@ -1874,6 +1874,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"

Expand Down

0 comments on commit 146ac6c

Please sign in to comment.