Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mkarchiso
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2007-10-05 14:27:52 -0500
committerDan McGee <dpmcgee@gmail.com>2007-10-09 20:59:26 -0500
commit69c9986a9c2dc6ad18bb1de0c2c2a328c5c94239 (patch)
treed82403b2404ce2638c4ca4b56c438535020ed2af /mkarchiso
parentd0688d1130a98f9c015f227f7f94a78affa7813f (diff)
Got archiso into working condition
Several small changes just as a shim to get everything to work. Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'mkarchiso')
-rwxr-xr-xmkarchiso9
1 files changed, 4 insertions, 5 deletions
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