@@ -53,7 +53,6 ENABLE_CONSOLE=${ENABLE_CONSOLE:=true} | |||
|
53 | 53 | ENABLE_IPV6=${ENABLE_IPV6:=true} |
|
54 | 54 | ENABLE_SSHD=${ENABLE_SSHD:=true} |
|
55 | 55 | ENABLE_SOUND=${ENABLE_SOUND:=true} |
|
56 | ENABLE_SYSTEMD=${ENABLE_SYSTEMD:=true} | |
|
57 | 56 | ENABLE_DBUS=${ENABLE_DBUS:=true} |
|
58 | 57 | ENABLE_HWRANDOM=${ENABLE_HWRANDOM:=true} |
|
59 | 58 | ENABLE_MINGPU=${ENABLE_MINGPU:=false} |
@@ -75,7 +74,7 REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static dosfstool | |||
|
75 | 74 | MISSING_PACKAGES="" |
|
76 | 75 | |
|
77 | 76 | # Packages required in the chroot build enviroment |
|
78 |
APT_INCLUDES="apt-transport-https,ca-certificates,debian-archive-keyring,dialog,locales |
|
|
77 | APT_INCLUDES="apt-transport-https,ca-certificates,debian-archive-keyring,dialog,locales" | |
|
79 | 78 | |
|
80 | 79 | set +x |
|
81 | 80 | |
@@ -121,11 +120,6 trap cleanup 0 1 2 3 6 | |||
|
121 | 120 | # Set up chroot directory |
|
122 | 121 | mkdir -p $R |
|
123 | 122 | |
|
124 | # Use traditional SystemV init instead of systemd services | |
|
125 | if [ "$ENABLE_SYSTEMD" = false ] ; then | |
|
126 | APT_INCLUDES="${APT_INCLUDES},sysvinit-core" | |
|
127 | fi | |
|
128 | ||
|
129 | 123 | # Add dbus package, recommended if using systemd |
|
130 | 124 | if [ "$ENABLE_DBUS" = true ] ; then |
|
131 | 125 | APT_INCLUDES="${APT_INCLUDES},dbus" |
@@ -159,11 +153,6 fi | |||
|
159 | 153 | debootstrap --arch=armhf --foreign --include=${APT_INCLUDES} $RELEASE $R ${APT_PROXY}${APT_SERVER}/debian |
|
160 | 154 | cp /usr/bin/qemu-arm-static $R/usr/bin |
|
161 | 155 | |
|
162 | # Remove systemd related packages from list of packages to be bootstrapped | |
|
163 | if [ "$ENABLE_SYSTEMD" = false ] ; then | |
|
164 | chroot $R sed -i -e 's/systemd systemd-sysv //g' /debootstrap/required | |
|
165 | fi | |
|
166 | ||
|
167 | 156 | # Copy debian-archive-keyring.pgp |
|
168 | 157 | chroot $R mkdir -p /usr/share/keyrings |
|
169 | 158 | cp /usr/share/keyrings/debian-archive-keyring.gpg $R/usr/share/keyrings/debian-archive-keyring.gpg |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant