File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,10 @@ EOF
134134chmod a+x " $DEST /usr/sbin/policy-rc.d"
135135
136136do_chroot () {
137- cmd=" $@ "
138137 mount -o bind /tmp " $DEST /tmp"
139138 chroot " $DEST " mount -t proc proc /proc
140139 chroot " $DEST " mount -t sysfs sys /sys
141- chroot " $DEST " $cmd
140+ chroot " $DEST " $CHROOT_PREFIX " $@ "
142141 chroot " $DEST " umount /sys
143142 chroot " $DEST " umount /proc
144143 umount " $DEST /tmp"
@@ -156,12 +155,20 @@ case $DISTRO in
156155 DEB=ubuntu
157156 DEBUSER=pine64
158157 DEBUSERPW=pine64
158+
159+ do_chroot apt-get -y update
160+ do_chroot apt-get -y install eatmydata
161+
162+ export DEBIAN_FRONTEND=noninteractive
163+ export CHROOT_PREFIX=" eatmydata --"
164+
165+ do_chroot locale-gen en_US.UTF-8
166+
159167 cat > " $DEST /second-phase" << EOF
160168#!/bin/bash
161169set -ex
162170export DEBIAN_FRONTEND=noninteractive
163171locale-gen en_US.UTF-8
164- apt-get -y update
165172apt-get install -y software-properties-common dirmngr
166173apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BF428671
167174apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 56A3D45E
You can’t perform that action at this time.
0 commit comments