diff options
| author | Ian Reinhart Geiser <geiseri@yahoo.com> | 2012-04-30 17:44:22 +0000 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2012-06-04 17:39:49 +0200 |
| commit | 5f89a19cca390e1c4c3e8cba84aaa1f972d0bd8a (patch) | |
| tree | 89473ec9569f2ad7d343b8ccbd35b07efd5e6c41 | |
| parent | 5e7955190b877abd2993deca7d87099eeebbe1ee (diff) | |
| download | live-boot-5f89a19cca390e1c4c3e8cba84aaa1f972d0bd8a.tar.gz live-boot-5f89a19cca390e1c4c3e8cba84aaa1f972d0bd8a.zip | |
Fix to allow for multiple rof when exposed roots is disabled.
| -rwxr-xr-x | scripts/live | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/live b/scripts/live index 70ea06e..9d699b7 100755 --- a/scripts/live +++ b/scripts/live @@ -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" |
