# 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,
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
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
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}"`
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