From a9ca30dd74ea07b498d299f4fb31bf3f6c640252 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 2 Jun 2011 16:32:05 +0200 Subject: Enable ramzswap for the recent SuSE versions ... --- src/initramfs/distro-specs/suse/functions-default | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/initramfs/distro-specs') diff --git a/src/initramfs/distro-specs/suse/functions-default b/src/initramfs/distro-specs/suse/functions-default index e20a6362..8cbb04d3 100644 --- a/src/initramfs/distro-specs/suse/functions-default +++ b/src/initramfs/distro-specs/suse/functions-default @@ -331,11 +331,13 @@ test -f /mnt/etc/inittab || error "$df_erritab" initial_boot () { local scripts=$* local count=10 +# check if /mnt/etc/init.d/boot.compcache aka ramzswap is available +[ -f /mnt/etc/init.d/boot.compcache ] && COMPCACHE=boot.compcache # boot.slx is a special runlevel script generated within initialramfs which # should be executed before the normal runlevel scripts. Proper shutdown is # not needed!? for i in boot.udev boot.proc boot.klog boot.loadmodules boot.slx boot.clock \ -boot.sysctl boot.ipconfig boot.swap $D_SPLASHY kbd; do +boot.sysctl boot.ipconfig $COMPCACHE boot.swap $D_SPLASHY kbd; do count=$(($count + 1)) [ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i" ln -sf /etc/init.d/$i /mnt/etc/init.d/boot.d/S${count}$i -- cgit v1.2.3-55-g7522