From 58c0f2bd02b152d69533a8504e82d1e16383275b Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sun, 3 Jun 2007 13:32:19 +0000 Subject: [PATCH] Stefan Fiedler: linux: only create a symlink to the default initrd image, not the image itself [2007052912261513971] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8524 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/linux/linux.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/package/base/linux/linux.conf b/package/base/linux/linux.conf index f1c3abd3e..38712621f 100644 --- a/package/base/linux/linux.conf +++ b/package/base/linux/linux.conf @@ -483,12 +483,10 @@ main_lx() { ln -sf ../../../usr/src/linux-${lx_kernelrelease} \ $root/lib/modules/${lx_kernelrelease}/source + # just create a symlink to the default initrd image here; the file + # pointed to will be created by the rockinitrd postinstall script if [ "$default" ] ; then - if [ -z "$root" ]; then - mkinitrd empty ${lx_kernelrelease} - rm -f /boot/initrd.img - ln -s initrd-${lx_kernelrelease}.img /boot/initrd.img - fi + ln -s initrd-${lx_kernelrelease}.img /boot/initrd.img fi }