diff options
-rw-r--r-- | src/initramfs/distro-specs/suse/functions-default | 4 |
1 files changed, 3 insertions, 1 deletions
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 |