From 22769ddd35d4aab8737d520d3b03aa83464a387d Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Mon, 13 Nov 2006 19:58:42 +0000 Subject: [PATCH] Inverted check on CDROOT_DEV, as it should be -z not -n. Thanks to Jakub Moc for coming up with the quick fix in bug #153554. I lied before. This one is really 3.4.5. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@462 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- ChangeLog | 6 ++++++ generic/initrd.scripts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd7731f..cdbcef1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ # Copyright 2006-2006 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 13 Nov 2006; Chris Gianelloni + generic/initrd.scripts: + Inverted check on CDROOT_DEV, as it should be -z not -n. Thanks to Jakub Moc + for coming up with the quick fix in bug #153554. I lied + before. This one is really 3.4.5. + 13 Nov 2006; Chris Gianelloni generic/linuxrc, genkernel: Added typo fix from Jason Pepas in bug #153516. diff --git a/generic/initrd.scripts b/generic/initrd.scripts index 299870e..672d61e 100644 --- a/generic/initrd.scripts +++ b/generic/initrd.scripts @@ -72,7 +72,7 @@ findcdmount() { if [ -b "${x}" ] then good_msg "Attempting to mount media:- ${x}" - if [ -n "${CDROOT_DEV}" ] + if [ -z "${CDROOT_DEV}" ] then mount -r -t auto ${x} ${NEW_ROOT}/mnt/cdrom \ > /dev/null 2>&1 -- 2.26.2