Use TinyCore Linux 7.x for TinyIPA
Bump to the latest version mainly to get the slimmed down gdisk [1]. Additionally, ensure /dev/pts is mounted in the chroot to avoid make from segfaulting when ttyname fails [2]. This only affects interactive mode. [1]: http://forum.tinycorelinux.net/index.php/topic,19951.0.html [2]: http://patches.openembedded.org/patch/117921/ Change-Id: If752cd9ed561a571c9690eb7390c3ee3910b09e0
This commit is contained in:
parent
ec69fc5465
commit
7274e2ee81
@ -27,8 +27,8 @@ fi
|
||||
##############################################
|
||||
|
||||
cd $WORKDIR/build_files
|
||||
wget -N http://distro.ibiblio.org/tinycorelinux/6.x/x86_64/release/distribution_files/corepure64.gz
|
||||
wget -N http://distro.ibiblio.org/tinycorelinux/6.x/x86_64/release/distribution_files/vmlinuz64
|
||||
wget -N http://distro.ibiblio.org/tinycorelinux/7.x/x86_64/release/distribution_files/corepure64.gz
|
||||
wget -N http://distro.ibiblio.org/tinycorelinux/7.x/x86_64/release/distribution_files/vmlinuz64
|
||||
cd $WORKDIR
|
||||
|
||||
########################################################
|
||||
@ -59,7 +59,11 @@ cp requirements.txt $BUILDDIR/tmp/ipa-requirements.txt
|
||||
cd $WORKDIR
|
||||
|
||||
sudo cp /etc/resolv.conf $BUILDDIR/etc/resolv.conf
|
||||
|
||||
trap "sudo umount $BUILDDIR/proc; sudo umount $BUILDDIR/dev/pts" EXIT
|
||||
sudo mount --bind /proc $BUILDDIR/proc
|
||||
sudo mount --bind /dev/pts $BUILDDIR/dev/pts
|
||||
|
||||
$CHROOT_CMD mkdir /etc/sysconfig/tcedir
|
||||
$CHROOT_CMD chmod a+rwx /etc/sysconfig/tcedir
|
||||
$CHROOT_CMD touch /etc/sysconfig/tcuser
|
||||
@ -72,8 +76,6 @@ while read line; do
|
||||
sudo chroot --userspec=$TC:$STAFF $BUILDDIR /usr/bin/env -i PATH=$CHROOT_PATH http_proxy=$http_proxy https_proxy=$https_proxy no_proxy=$no_proxy tce-load -wci $line
|
||||
done < $WORKDIR/build_files/buildreqs.lst
|
||||
|
||||
sudo umount $BUILDDIR/proc
|
||||
|
||||
# Build python wheels
|
||||
$CHROOT_CMD python /tmp/get-pip.py
|
||||
$CHROOT_CMD pip install pbr
|
||||
|
@ -7,8 +7,8 @@ hdparm.tcz
|
||||
parted.tcz
|
||||
python.tcz
|
||||
python-dev.tcz
|
||||
raid-dm-3.16.6-tinycore64.tcz
|
||||
scsi-3.16.6-tinycore64.tcz
|
||||
raid-dm-4.2.9-tinycore64.tcz
|
||||
scsi-4.2.9-tinycore64.tcz
|
||||
udev-lib.tcz
|
||||
util-linux.tcz
|
||||
pkg-config.tcz
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
S="Linux"
|
||||
N="box"
|
||||
R="3.16.6-tinycore64"
|
||||
R="4.2.9-tinycore64"
|
||||
P="unknown"
|
||||
V="#777 SMP (2016-02-29)"
|
||||
M="x86_64"
|
||||
|
@ -6,8 +6,8 @@ hdparm.tcz
|
||||
iproute2.tcz
|
||||
parted.tcz
|
||||
python.tcz
|
||||
raid-dm-3.16.6-tinycore64.tcz
|
||||
scsi-3.16.6-tinycore64.tcz
|
||||
raid-dm-4.2.9-tinycore64.tcz
|
||||
scsi-4.2.9-tinycore64.tcz
|
||||
udev-lib.tcz
|
||||
util-linux.tcz
|
||||
glib2.tcz
|
||||
|
Loading…
Reference in New Issue
Block a user