summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2011-06-02 16:32:05 +0200
committerDirk von Suchodoletz2011-06-02 16:32:05 +0200
commita9ca30dd74ea07b498d299f4fb31bf3f6c640252 (patch)
tree0468ecaf47d9c71cccc249a0696a740458b17688 /src/initramfs
parentMissing stuff for LinuxMint ... (diff)
downloadcore-a9ca30dd74ea07b498d299f4fb31bf3f6c640252.tar.gz
core-a9ca30dd74ea07b498d299f4fb31bf3f6c640252.tar.xz
core-a9ca30dd74ea07b498d299f4fb31bf3f6c640252.zip
Enable ramzswap for the recent SuSE versions ...
Diffstat (limited to 'src/initramfs')
-rw-r--r--src/initramfs/distro-specs/suse/functions-default4
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