Make sure the febootstrap-supermin-helper script does not contain
any hard-wired references to the current architecture.
- febootstrap-supermin-helper supermin.img hostfiles.txt kernel initrd
+ febootstrap-supermin-helper supermin.img hostfiles.txt host_cpu kernel initrd
-Of the four parameters, the first two are I<input> files, and the last
+Of the five parameters, the first two are I<input> files, and the last
two are I<output> files.
C<supermin.img> and C<hostfiles.txt> are the input files which
describe the supermin appliance.
two are I<output> files.
C<supermin.img> and C<hostfiles.txt> are the input files which
describe the supermin appliance.
+C<host_cpu> should be the host CPU, eg. C<x86_64> or C<i686>.
+
C<kernel> and C<initrd> are the temporary output files that this
script produces. These output files are meant to be used just for
booting the appliance, and should be deleted straight afterwards.
C<kernel> and C<initrd> are the temporary output files that this
script produces. These output files are meant to be used just for
booting the appliance, and should be deleted straight afterwards.
- echo "Usage: febootstrap-supermin-helper supermin.img hostfiles.txt kernel initrd"
+ echo "Usage: febootstrap-supermin-helper supermin.img hostfiles.txt host_cpu kernel initrd"
echo "Please read febootstrap-supermin-helper(8) man page for more information."
}
echo "Please read febootstrap-supermin-helper(8) man page for more information."
}
supermin="$1"
hostfiles="$2"
supermin="$1"
hostfiles="$2"
-kernel="$3"
-initrd="$4"
+kernel="$4"
+initrd="$5"
rm -f "$kernel" "$initrd"
rm -f "$kernel" "$initrd"
# RHEL 5 didn't append the arch to the kernel name, so look for kernels
# without arch second.
# RHEL 5 didn't append the arch to the kernel name, so look for kernels
# without arch second.
-arch=$(echo "@host_cpu@" | sed 's/^i.86$/i?86/')
+arch=$(echo $host_cpu | sed 's/^i.86$/i?86/')
kernels=$(
ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen ||: ;
ls -1dvr /boot/vmlinuz-* 2>/dev/null | grep -v xen
kernels=$(
ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen ||: ;
ls -1dvr /boot/vmlinuz-* 2>/dev/null | grep -v xen