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>
This commit is contained in:
Simo Leone 2007-10-05 14:27:52 -05:00 committed by Dan McGee
parent d0688d1130
commit 69c9986a9c
7 changed files with 12 additions and 12 deletions

2
TODO
View File

@ -8,3 +8,5 @@
graphics to all submenus graphics to all submenus
* possible auto-detection of installed systems via nifty grub tricks? * possible auto-detection of installed systems via nifty grub tricks?
* use system's package cache when generating install to save some bandwidth (use mkarchroot?)

View File

@ -6,7 +6,6 @@ run_hook ()
fi fi
msg -n ":: Mounting tmpfs, size=${ramdisk_size}..." msg -n ":: Mounting tmpfs, size=${ramdisk_size}..."
mount -t tmpfs -o "size=${ramdisk_size}" tmpfs /tmpfs mount -t tmpfs -o "size=${ramdisk_size}" tmpfs /tmpfs
mkdir /tmpfs/bootcd
msg "done." msg "done."
if [ "x${BOOT_MOUNT}" -eq "x" ]; then if [ "x${BOOT_MOUNT}" -eq "x" ]; then

View File

@ -3,14 +3,14 @@ run_hook ()
{ {
msg ":: Scanning for boot cdrom device..." msg ":: Scanning for boot cdrom device..."
/bin/mkdir -p /tmpfs/bootmnt /bin/mkdir -p /bootmnt
bootmnt="/tmpfs/bootmnt/" bootmnt="/bootmnt/"
found=0 found=0
/bin/modprobe -q isofs >/dev/null 2>&1 /bin/modprobe -q isofs >/dev/null 2>&1
for cdrom in /dev/cd/*; do for cdrom in /dev/cd/*; do
if mount -r -t iso9660 "${cdrom}" ${bootmnt} >/dev/null 2>&1; then if mount -r -t iso9660 "${cdrom}" ${bootmnt} >/dev/null 2>&1; then
if [ -e "${bootmnt}/archiso.sqfs" ]; then if [ -e "${bootmnt}/archlive.sqfs" ]; then
found=1 found=1
msg "${cdrom}" msg "${cdrom}"
break break

View File

@ -6,5 +6,5 @@ install ()
FILES="" FILES=""
add_dir /real_root add_dir /real_root
add_dir /tmpfs add_dir /tmpfs
SCRIPT="archlive" SCRIPT="archiso"
} }

View File

@ -4,5 +4,5 @@ install ()
MODULES="cdrom ide-cd ide-core ide-generic unionfs squashfs isofs $(all_modules '/kernel/fs' | grep -v "nls") " MODULES="cdrom ide-cd ide-core ide-generic unionfs squashfs isofs $(all_modules '/kernel/fs' | grep -v "nls") "
BINARIES="" BINARIES=""
FILES="" FILES=""
SCRIPT="from-cd" SCRIPT="boot-cd"
} }

View File

@ -78,9 +78,8 @@ fi
_kversion () _kversion ()
{ {
echo $(pacman -Ql -r "${instroot}" "${kernelpkg}" |\ source ${instroot}/etc/mkinitcpio.d/kernel26.kver
grep "/lib/modules/[^/]*/$" |\ echo ${ALL_kver}
sed "s|.*/lib/modules/\([^/]*\).*/$|\1|")
} }
_pacman () _pacman ()
@ -94,7 +93,7 @@ _pacman ()
FAKEROOTSAV=$FAKEROOTKEY; unset FAKEROOTKEY FAKEROOTSAV=$FAKEROOTKEY; unset FAKEROOTKEY
#TODO this grep is a tad weird... #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 exit 1
fi fi
FAKEROOTKEY=$FAKEROOTSAV FAKEROOTKEY=$FAKEROOTSAV
@ -127,7 +126,7 @@ if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then
mkdir -p "${instroot}" mkdir -p "${instroot}"
FAKEROOTSAV=$FAKEROOTKEY; unset FAKEROOTKEY 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." echo "Error, failed to sync pacman... aborting."
exit 1 exit 1
fi fi

View File

@ -39,6 +39,7 @@ lzo2
mailx mailx
man man
man-pages man-pages
mdadm
memtest86+ memtest86+
mktemp mktemp
module-init-tools module-init-tools
@ -63,7 +64,6 @@ procinfo
procps procps
psmisc psmisc
python python
raidtools
readline readline
reiserfsprogs reiserfsprogs
rp-pppoe rp-pppoe