@@ -16,18 +16,22 if [ "$BUILD_KERNEL" = false ] ; then | |||||
16 | echo "Downloading precompiled kernel" |
|
16 | echo "Downloading precompiled kernel" | |
17 | echo "error: not configured" |
|
17 | echo "error: not configured" | |
18 | exit 1; |
|
18 | exit 1; | |
19 |
|
|
19 | # BUILD_KERNEL=true | |
|
20 | else | |||
|
21 | echo "No precompiled kernel repositories were added" | |||
|
22 | fi | |||
|
23 | ||||
20 |
|
|
24 | #autconfigure best apt server to not spam ftp.debian.org | |
21 |
|
|
25 | #rm files/apt/sources.list | |
22 |
|
|
26 | #netselect-apt does not know buster yet | |
23 |
|
|
27 | if [ "$RELEASE" = "buster" ] ; then | |
24 |
|
|
28 | RELEASE=${RELEASE:=testing} | |
25 |
|
|
29 | fi | |
26 | netselect_string=${netselect_string:=""} |
|
30 | ||
27 |
|
|
31 | if [ "$ENABLE_NONFREE" = true ] ; then | |
28 |
netselect-apt --arch "$RELEASE_ARCH" --sources |
|
32 | netselect-apt --arch "$RELEASE_ARCH" --sources --nonfree --outfile "${ETC_DIR}/apt/sources.list" -d "$RELEASE" | |
29 | fi |
|
33 | else | |
30 |
netselect-apt --arch "$RELEASE_ARCH" --sources |
|
34 | netselect-apt --arch "$RELEASE_ARCH" --sources --outfile "${ETC_DIR}/apt/sources.list" -d "$RELEASE" | |
31 | fi |
|
35 | fi | |
32 |
|
36 | |||
33 | # Upgrade package index and update all installed packages and changed dependencies |
|
37 | # Upgrade package index and update all installed packages and changed dependencies |
@@ -10,13 +10,12 if [ "$ENABLE_IPTABLES" = true ] ; then | |||||
10 | # Create iptables configuration directory |
|
10 | # Create iptables configuration directory | |
11 | mkdir -p "${ETC_DIR}/iptables" |
|
11 | mkdir -p "${ETC_DIR}/iptables" | |
12 |
|
12 | |||
13 | #In Jessie iptables is old enough |
|
|||
14 | if ! [ "$RELEASE" = jessie ] ; then |
|
|||
15 | # make sure iptables-legacy,iptables-legacy-restore and iptables-legacy-save are the used alternatives |
|
13 | # make sure iptables-legacy,iptables-legacy-restore and iptables-legacy-save are the used alternatives | |
16 | chroot_exec update-alternatives --verbose --set iptables /usr/sbin/iptables-legacy |
|
14 | chroot_exec update-alternatives --verbose --set iptables /usr/sbin/iptables-legacy | |
17 | #chroot_exec update-alternatives --verbose --set iptables-save /usr/sbin/iptables-legacy-save |
|
15 | #chroot_exec update-alternatives --verbose --set iptables-save /usr/sbin/iptables-legacy-save | |
18 | #chroot_exec update-alternatives --verbose --set iptables-restore /usr/sbin/iptables-legacy-restore |
|
16 | #chroot_exec update-alternatives --verbose --set iptables-restore /usr/sbin/iptables-legacy-restore | |
19 | fi |
|
17 | chroot_exec update-alternatives --verbose --install /usr/sbin/iptables-save iptables-save /usr/sbin/iptables-legacy-save 1 | |
|
18 | chroot_exec update-alternatives --verbose --install /usr/sbin/iptables-restore iptables-restore /usr/sbin/iptables-legacy-restore 1 | |||
20 |
|
19 | |||
21 | # Install iptables systemd service |
|
20 | # Install iptables systemd service | |
22 | install_readonly files/iptables/iptables.service "${ETC_DIR}/systemd/system/iptables.service" |
|
21 | install_readonly files/iptables/iptables.service "${ETC_DIR}/systemd/system/iptables.service" |
@@ -188,7 +188,7 CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""} | |||||
188 |
|
188 | |||
189 | # Packages required in the chroot build environment |
|
189 | # Packages required in the chroot build environment | |
190 | APT_INCLUDES=${APT_INCLUDES:=""} |
|
190 | APT_INCLUDES=${APT_INCLUDES:=""} | |
191 | APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" |
|
191 | APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils,locales,keyboard-configuration,console-setup" | |
192 |
|
192 | |||
193 | # Packages required for bootstrapping |
|
193 | # Packages required for bootstrapping | |
194 | REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo" |
|
194 | REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo" | |
@@ -474,11 +474,6 if [ "$ENABLE_MINBASE" = true ] ; then | |||||
474 | APT_INCLUDES="${APT_INCLUDES},vim-tiny,netbase,net-tools,ifupdown" |
|
474 | APT_INCLUDES="${APT_INCLUDES},vim-tiny,netbase,net-tools,ifupdown" | |
475 | fi |
|
475 | fi | |
476 |
|
476 | |||
477 | # Add required locales packages |
|
|||
478 | if [ "$DEFLOCAL" != "en_US.UTF-8" ] || { [ -n "$XKB_MODEL" ] || [ -n "$XKB_LAYOUT" ] || [ -n "$XKB_VARIANT" ] || [ -n "$XKB_OPTIONS" ] ; } ; then |
|
|||
479 | APT_INCLUDES="${APT_INCLUDES},locales,keyboard-configuration,console-setup" |
|
|||
480 | fi |
|
|||
481 |
|
||||
482 | # Add parted package, required to get partprobe utility |
|
477 | # Add parted package, required to get partprobe utility | |
483 | if [ "$EXPANDROOT" = true ] ; then |
|
478 | if [ "$EXPANDROOT" = true ] ; then | |
484 | APT_INCLUDES="${APT_INCLUDES},parted" |
|
479 | APT_INCLUDES="${APT_INCLUDES},parted" |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant