summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjonas <jonas@8f53b18a-e215-0410-8885-9f593d34873e>2006-08-02 22:21:03 +0000
committerjonas <jonas@8f53b18a-e215-0410-8885-9f593d34873e>2006-08-02 22:21:03 +0000
commita9e23668fc235f235647eb8f6ff570d8b91668b9 (patch)
tree59be1acb2e50aa923b1884c063103b903055d2ab
parent6356d915813425173f4fe5f82a769072177e9a8a (diff)
Fix check for old initrd-tools.
git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/homebase@30 8f53b18a-e215-0410-8885-9f593d34873e
-rwxr-xr-x1_makerootfs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/1_makerootfs.sh b/1_makerootfs.sh
index 82291b4..eb2d365 100755
--- a/1_makerootfs.sh
+++ b/1_makerootfs.sh
@@ -106,7 +106,7 @@ cp -af tweaks/usr/local/sbin/policy-rc.d "$targettemp/usr/local/sbin/"
# Prepare kernel installation
# TODO: support yaird and mkramfs too
# FIXME: deal with initrd generated while on host
-if [ -n "$RAMDISKTOOL" = "initrd-tools" ]; then
+if [ "$RAMDISKTOOL" = "initrd-tools" ]; then
preserveolderfile "$targettemp/etc/mkinitrd/mkinitrd.conf" orig
perl -pi -e "s¡^ROOT=.*¡ROOT=$rootdev_target¡" "$targettemp/etc/mkinitrd/mkinitrd.conf"
perl -pi -e "s¡^MODULES=.*¡MODULES=dep¡" "$targettemp/etc/mkinitrd/mkinitrd.conf"