# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc,
+ gen_cmdline.sh, gen_determineargs.sh, genkernel:
+ Add --unionfs commandline option to enable building of unionfs-fuse Add
+ nounionfs boot option
+
14 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts:
Add good_msg for creating the union mount
USE_UNIONFS_NORMAL=1
fi
;;
+ nounionfs)
+ USE_UNIONFS_NORMAL=0
+ ;;
# unionfs\=*)
# if [ ! -x /sbin/unionfs ]
# then
echo " --luks Include LUKS support"
echo " --> 'emerge cryptsetup-luks' with USE=-dynamic"
echo " --no-busybox Do not include busybox in the initramfs."
+ echo " --unionfs Include support for unionfs"
echo " Internals"
echo " --arch-override=<arch> Force to arch instead of autodetect"
echo " --cachedir=<dir> Override the default cache location"
CMD_BUSYBOX=0
print_info 2 "CMD_BUSYBOX: ${CMD_BUSYBOX}"
;;
+ --unionfs)
+ CMD_UNIONFS=1
+ print_info 2 "CMD_UNIONFS: ${CMD_UNIONFS}"
+ ;;
--slowusb)
CMD_SLOWUSB=1
print_info 2 "CMD_SLOWUSB: ${CMD_SLOWUSB}"
set_config_with_override 1 EVMS CMD_EVMS
set_config_with_override 1 DMRAID CMD_DMRAID
set_config_with_override 1 BUSYBOX CMD_BUSYBOX "yes"
+ set_config_with_override 1 UNIONFS CMD_UNIONFS
set_config_with_override 1 DISKLABEL CMD_DISKLABEL
set_config_with_override 1 LUKS CMD_LUKS
set_config_with_override 1 MDADM CMD_MDADM
compile_busybox
fi
- compile_unionfs_fuse
-
+ if isTrue "${UNIONFS}"
+ then
+ compile_unionfs_fuse
+ fi
+
# Compile initramfs
create_initramfs
else