Small cleanups in unionfs code

cleanup-cruft
Andrew Gaffney 16 years ago
parent fd24098f08
commit abf5986e2b

@ -2,6 +2,10 @@
# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2 # Distributed under the GPL v2
14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts,
defaults/linuxrc:
Small cleanups in unionfs code
14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> arch/alpha/modules_load, 14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> arch/alpha/modules_load,
arch/ia64/modules_load, arch/mips/modules_load, arch/parisc/modules_load, arch/ia64/modules_load, arch/mips/modules_load, arch/parisc/modules_load,
arch/parisc64/modules_load, arch/ppc/modules_load, arch/parisc64/modules_load, arch/ppc/modules_load,

@ -969,15 +969,15 @@ setup_unionfs() {
then then
# Directory used for rw changes in union mount filesystem # Directory used for rw changes in union mount filesystem
UNION=/union UNION=/union
MEMORY=/memory # MEMORY=/memory
if [ -z "$UID" ] # if [ -z "$UID" ]
then # then
CHANGES=$MEMORY/unionfs_changes/default # CHANGES=$MEMORY/unionfs_changes/default
else # else
CHANGES=$MEMORY/unionfs_changes/$UID # CHANGES=$MEMORY/unionfs_changes/$UID
fi # fi
mkdir -p ${MEMORY} # mkdir -p ${MEMORY}
mkdir -p ${UNION} mkdir -p ${UNION}
good_msg "Loading fuse module" good_msg "Loading fuse module"
modprobe fuse > /dev/null 2>&1 modprobe fuse > /dev/null 2>&1
@ -1009,9 +1009,9 @@ setup_unionfs() {
mkdir /tmp mkdir /tmp
mkdir -p ${UNION} mkdir -p ${UNION}
mkdir -p $CHANGES # mkdir -p $CHANGES
# mount -t unionfs -o dirs=$CHANGES=rw unionfs ${UNION} # mount -t unionfs -o dirs=$CHANGES=rw unionfs ${UNION}
unionfs -o allow_other,cow,noinitgroups,suid,dev ${rw_dir}=RW:${ro_dir} ${UNION} unionfs -o allow_other,cow,noinitgroups,suid,dev ${rw_dir}=RW:${ro_dir}=RO ${UNION}
ret=$? ret=$?
if [ "${ret}" -ne 0 ] if [ "${ret}" -ne 0 ]
then then

@ -193,10 +193,10 @@ do
fi fi
;; ;;
# unionfs\=*) # unionfs\=*)
# if [ ! -x /sbin/unionctl ] # if [ ! -x /sbin/unionfs ]
# then # then
# USE_UNIONFS_NORMAL=0 # USE_UNIONFS_NORMAL=0
# bad_msg 'Unionctl not found: aborting use of unionfs!' # bad_msg 'unionfs binary not found: aborting use of unionfs!'
# else # else
# USE_UNIONFS_NORMAL=1 # USE_UNIONFS_NORMAL=1
# CMD_UNIONFS=`parse_opt "${x}"` # CMD_UNIONFS=`parse_opt "${x}"`
@ -285,7 +285,7 @@ rundebugshell
if [ "${CDROOT}" = '1' ] if [ "${CDROOT}" = '1' ]
then then
good_msg "Making tmpfs for ${NEW_ROOT}" good_msg "Making tmpfs for ${NEW_ROOT}"
mount -t tmpfs tmpfs "${NEW_ROOT}" mount -n -t tmpfs tmpfs "${NEW_ROOT}"
for i in dev mnt mnt/cdrom mnt/livecd mnt/key tmp tmp/.initrd mnt/gentoo sys for i in dev mnt mnt/cdrom mnt/livecd mnt/key tmp tmp/.initrd mnt/gentoo sys
do do

Loading…
Cancel
Save