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
# 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,
arch/ia64/modules_load, arch/mips/modules_load, arch/parisc/modules_load,
arch/parisc64/modules_load, arch/ppc/modules_load,

@ -969,15 +969,15 @@ setup_unionfs() {
then
# Directory used for rw changes in union mount filesystem
UNION=/union
MEMORY=/memory
if [ -z "$UID" ]
then
CHANGES=$MEMORY/unionfs_changes/default
else
CHANGES=$MEMORY/unionfs_changes/$UID
fi
# MEMORY=/memory
# if [ -z "$UID" ]
# then
# CHANGES=$MEMORY/unionfs_changes/default
# else
# CHANGES=$MEMORY/unionfs_changes/$UID
# fi
mkdir -p ${MEMORY}
# mkdir -p ${MEMORY}
mkdir -p ${UNION}
good_msg "Loading fuse module"
modprobe fuse > /dev/null 2>&1
@ -1009,9 +1009,9 @@ setup_unionfs() {
mkdir /tmp
mkdir -p ${UNION}
mkdir -p $CHANGES
# mkdir -p $CHANGES
# 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=$?
if [ "${ret}" -ne 0 ]
then

@ -193,10 +193,10 @@ do
fi
;;
# unionfs\=*)
# if [ ! -x /sbin/unionctl ]
# if [ ! -x /sbin/unionfs ]
# then
# USE_UNIONFS_NORMAL=0
# bad_msg 'Unionctl not found: aborting use of unionfs!'
# bad_msg 'unionfs binary not found: aborting use of unionfs!'
# else
# USE_UNIONFS_NORMAL=1
# CMD_UNIONFS=`parse_opt "${x}"`
@ -285,7 +285,7 @@ rundebugshell
if [ "${CDROOT}" = '1' ]
then
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
do

Loading…
Cancel
Save