# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2
+ 13 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts,
+ +patches/busybox/1.7.4/1.7.4-mount-i-option.diff:
+ Add patch for busybox to add -i option to mount command
+
13 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh:
Compile unionfs-fuse statically
mount -t tmpfs tmpfs $MEMORY
# fi
+ mkdir /tmp
+ mkdir -p ${UNION}
mkdir -p $CHANGES
# mount -t unionfs -o dirs=$CHANGES=rw unionfs ${UNION}
unionfs -o allow_others,allow_root,cow,noinitgroups ${rw_dir}=RW:${ro_dir} ${UNION}
--- /dev/null
+--- busybox-1.7.4.orig/util-linux/mount.c 2007-09-03 06:48:56.000000000 -0500
++++ busybox-1.7.4/util-linux/mount.c 2008-11-13 12:09:53.000000000 -0600
+@@ -1554,7 +1554,7 @@
+
+ // Parse remaining options
+
+- opt = getopt32(argv, "o:t:rwanfvs", &opt_o, &fstype);
++ opt = getopt32(argv, "o:t:rwanfvsi", &opt_o, &fstype);
+ if (opt & 0x1) append_mount_options(&cmdopts, opt_o); // -o
+ //if (opt & 0x2) // -t
+ if (opt & 0x4) append_mount_options(&cmdopts, "ro"); // -r