From 69c9986a9c2dc6ad18bb1de0c2c2a328c5c94239 Mon Sep 17 00:00:00 2001 From: Simo Leone Date: Fri, 5 Oct 2007 14:27:52 -0500 Subject: Got archiso into working condition Several small changes just as a shim to get everything to work. Signed-off-by: Simo Leone --- mkarchiso | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mkarchiso') diff --git a/mkarchiso b/mkarchiso index 4710a15..f857103 100755 --- a/mkarchiso +++ b/mkarchiso @@ -78,9 +78,8 @@ fi _kversion () { - echo $(pacman -Ql -r "${instroot}" "${kernelpkg}" |\ - grep "/lib/modules/[^/]*/$" |\ - sed "s|.*/lib/modules/\([^/]*\).*/$|\1|") + source ${instroot}/etc/mkinitcpio.d/kernel26.kver + echo ${ALL_kver} } _pacman () @@ -94,7 +93,7 @@ _pacman () FAKEROOTSAV=$FAKEROOTKEY; unset FAKEROOTKEY #TODO this grep is a tad weird... - if ! eval "${fkchroot} pacman -Sf --noconfirm -r \"${instroot}\" $*" | grep "\[#"; then + if ! eval "${fkchroot} pacman -Sf --noconfirm -r \"${instroot}\" $*"; then exit 1 fi FAKEROOTKEY=$FAKEROOTSAV @@ -127,7 +126,7 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then mkdir -p "${instroot}" FAKEROOTSAV=$FAKEROOTKEY; unset FAKEROOTKEY - if ! pacman -Sy -r "${instroot}" 2>&1 | grep -v "cannot open logfile"; then + if ! pacman -Sy -r "${instroot}" | grep -v "cannot open logfile"; then echo "Error, failed to sync pacman... aborting." exit 1 fi -- cgit v1.2.2