This commit is contained in:
parent
687aee76e9
commit
f712678141
|
@ -30,6 +30,28 @@ Check_architecture ()
|
|||
fi
|
||||
}
|
||||
|
||||
Check_crossarchitecture ()
|
||||
{
|
||||
if [ -x /usr/bin/dpkg ]
|
||||
then
|
||||
HOST="$(dpkg --print-architecture)"
|
||||
else
|
||||
HOST="$(uname -m)"
|
||||
fi
|
||||
|
||||
case "${HOST}" in
|
||||
amd64|i386)
|
||||
CROSS="amd64 i386"
|
||||
;;
|
||||
|
||||
powerpc|ppc64)
|
||||
CROSS="powerpc ppc64"
|
||||
;;
|
||||
esac
|
||||
|
||||
Check_architecture "${CROSS}"
|
||||
}
|
||||
|
||||
Check_multiarchitecture ()
|
||||
{
|
||||
if [ "$(echo ${LH_ARCHITECTURE} | wc -w)" -gt "1" ]
|
||||
|
|
|
@ -57,6 +57,7 @@ Create_lockfile .lock
|
|||
|
||||
# Check architecture
|
||||
Check_architecture amd64 i386
|
||||
Check_crossarchitecture
|
||||
|
||||
# Checking depends
|
||||
Check_package chroot/usr/sbin/grub grub
|
||||
|
|
|
@ -57,6 +57,7 @@ Create_lockfile .lock
|
|||
|
||||
# Check architecture
|
||||
Check_architecture amd64 i386
|
||||
Check_crossarchitecture
|
||||
|
||||
# Checking depends
|
||||
Check_package chroot/usr/bin/syslinux syslinux
|
||||
|
|
|
@ -57,6 +57,7 @@ Create_lockfile .lock
|
|||
|
||||
# Check architecture
|
||||
Check_architecture powerpc ppc64
|
||||
Check_crossarchitecture
|
||||
|
||||
# Checking depends
|
||||
Check_package chroot/usr/lib/yaboot/yaboot yaboot
|
||||
|
|
|
@ -33,6 +33,9 @@ Read_conffile config/source
|
|||
Read_conffile "${LH_CONFIG}"
|
||||
Set_defaults
|
||||
|
||||
# Check architecture
|
||||
Check_crossarchitecture
|
||||
|
||||
Echo_message "Begin caching bootstrap stage..."
|
||||
|
||||
for STAGE in ${LH_CACHE_STAGES}
|
||||
|
|
|
@ -38,6 +38,9 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Check architecture
|
||||
Check_crossarchitecture
|
||||
|
||||
Echo_message "Begin bootstrapping system..."
|
||||
|
||||
Check_package /usr/bin/cdebootstrap cdebootstrap
|
||||
|
|
|
@ -38,6 +38,9 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Check architecture
|
||||
Check_crossarchitecture
|
||||
|
||||
Echo_message "Begin bootstrapping system..."
|
||||
|
||||
# Ensure that a system is built as root
|
||||
|
|
|
@ -38,6 +38,9 @@ then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Check architecture
|
||||
Check_crossarchitecture
|
||||
|
||||
Echo_message "Begin bootstrapping system..."
|
||||
|
||||
Check_package /usr/sbin/debootstrap debootstrap
|
||||
|
|
Loading…
Reference in New Issue