New commits:
commit b128b2d14e5464313874738c82e04bbf58b44c66
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
install udev into initrd using cache, not manually
Removed references to udev files from initrd.files, and added logic to
minitrd.sh to unpack the udev cache file found inside ISODIR into the
initrd. The unpacking excludes dirs and files not needed in the initrd,
like documentation, logs, etc.
+if [[ ! -f "$ISODIR"/var/cache/sorcery/udev* ]]
+then
+ echo "Chroot failed sanity check:"
+ echo "Chroot is missing the udev cache file!"
+ exit 2
+fi >&2
+
# The temporary dir I'll use to put the initrd files
INITRDROOT=/tmp/initrd-dir
@@ -203,6 +210,16 @@ function mk_initrd_file() {
fi
}
+function install_udev() {
+ local udev="$ISODIR/var/cache/udev*"
+ local exclude=(init.d doc man var)
+
+ if ! tar xf $udev "${exclude[@]/#/--exclude=}" -C "$INITRDROOT"
+ then
+ echo "error: could not extract $udev to $INITRDROOT"
+ exit 2
+ fi
+}