Skip to content

Commit

Permalink
Fix to allow for multiple rof when exposed roots is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
geiseri authored and daniel-baumann committed Jun 4, 2012
1 parent 5e79551 commit 5f89a19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/live
Expand Up @@ -1108,15 +1108,15 @@ setup_unionfs ()

rofscount=$(echo ${rofslist} |wc -w)

# XXX: we now ensure that there can only be one read-only filesystem. Should this be inside the EXPOSED_ROOT if?
if [ ${rofscount} -ne 1 ]
then
panic "only one RO file system supported with exposedroot: ${rofslist}"
fi
rofs=${rofslist%% }

if [ -n "${EXPOSED_ROOT}" ]
then
if [ ${rofscount} -ne 1 ]
then
panic "only one RO file system supported with exposedroot: ${rofslist}"
fi

mount --bind ${rofs} ${rootmnt} || \
panic "bind mount of ${rofs} failed"

Expand Down

0 comments on commit 5f89a19

Please sign in to comment.