Commit ad6c7671 authored by Anton Midyukov's avatar Anton Midyukov

initrd-{bootchain,propagator}: save initrd.mk, make-initrd to .disk/

parent d9c96ec9
...@@ -59,8 +59,14 @@ MAKE_INITRD_VER="`make-initrd -V \ ...@@ -59,8 +59,14 @@ MAKE_INITRD_VER="`make-initrd -V \
[ -z "$GLOBAL_VERBOSE" ] || [ -z "$GLOBAL_VERBOSE" ] ||
MAKE_INITRD_OPTS="$MAKE_INITRD_OPTS -v" MAKE_INITRD_OPTS="$MAKE_INITRD_OPTS -v"
# copy initrd.mk to image
mkdir -p /.image/.disk
cp /etc/initrd.mk /.image/.disk
cp /etc/sysconfig/bootchain /.image/.disk
cd /boot cd /boot
for KVER in $kver; do for KVER in $kver; do
echo make-initrd $MAKE_INITRD_OPTS -k "$KVER" >> /.image/.disk/mkinitrd
make-initrd $MAKE_INITRD_OPTS -k "$KVER" || make-initrd $MAKE_INITRD_OPTS -k "$KVER" ||
fatal "make-initrd failed" fatal "make-initrd failed"
done done
......
...@@ -28,6 +28,10 @@ for module in $(grep -v ^# /.in/modules | sort -u | tr -s '\n' ' '); do ...@@ -28,6 +28,10 @@ for module in $(grep -v ^# /.in/modules | sort -u | tr -s '\n' ' '); do
echo "MODULES_TRY_ADD += $module" >> /etc/initrd.mk echo "MODULES_TRY_ADD += $module" >> /etc/initrd.mk
done done
# copy initrd.mk to image
mkdir -p /.image/.disk
cp /etc/initrd.mk /.image/.disk
# FIXME: large storage systems can get that tmpfs filled up # FIXME: large storage systems can get that tmpfs filled up
# with debug data as of make-initrd 2.2.12 # with debug data as of make-initrd 2.2.12
rm -vf /usr/share/make-initrd/data/etc/udev/rules.d/00-debug.rules \ rm -vf /usr/share/make-initrd/data/etc/udev/rules.d/00-debug.rules \
...@@ -43,6 +47,7 @@ MAKE_INITRD_VER="`make-initrd -V \ ...@@ -43,6 +47,7 @@ MAKE_INITRD_VER="`make-initrd -V \
cd /boot cd /boot
for KVER in $kver; do for KVER in $kver; do
echo make-initrd $MAKE_INITRD_OPTS -k "$KVER" >> /.image/.disk/mkinitrd
make-initrd $MAKE_INITRD_OPTS -k "$KVER" || make-initrd $MAKE_INITRD_OPTS -k "$KVER" ||
fatal "make-initrd failed" fatal "make-initrd failed"
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment