diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-06-25 17:49:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-06-25 17:49:37 +0200 |
commit | 76fb46699ea35ef8bfce9c531e30ae4d031c45cb (patch) | |
tree | 4e3cf8f96abb00fc949dae3c8bc8c4e0e84bab71 /bootstrap | |
parent | 2216352a60686fb5b79c82bc49fe2a7f621a4d0e (diff) |
Upgrade to latest Debian unstable for 0.8.0 series
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -26,7 +26,7 @@ # usage="usage: $0" -macaddr="de:ad:be:ef:b8:da" # @@ TMP Mmac address for testing. +macaddr="de:ad:be:ef:b8:da" # @@ TMP mac address for testing. id="$(id -un)" btrfs=/btrfs @@ -45,12 +45,14 @@ root="$btrfs/$id/buildos" # release="unstable" components="main,contrib,non-free" -mirror="https://deb.debian.org/debian/" +mirror="http://deb.debian.org/debian/" +#mirror="https://deb.debian.org/debian/" base_pkgs="locales,klibc-utils,sudo,systemd-container,udev" base_pkgs+=",kmod,linux-base,firmware-linux-free,irqbalance,pciutils,usbutils" base_pkgs+=",intel-microcode,amd64-microcode" base_pkgs+=",hdparm,btrfs-progs" +base_pkgs+=",lm-sensors" base_pkgs+=",net-tools,iproute2,iptables,isc-dhcp-client" base_pkgs+=",ifupdown,bridge-utils,dnsmasq,ntp,postfix" @@ -65,7 +67,7 @@ base_pkgs+=",qemu-kvm,qemu-utils,socat" base_pkgs+=",g++,make,pkg-config" -extra_pkgs="lm-sensors" +extra_pkgs="ca-certificates,smartmontools" owd="$(pwd)" trap "{ cd '$owd'; exit 1; }" ERR @@ -242,7 +244,11 @@ mount --move /sys /tmp/sys # Run second stage of debootstrap. # -/debootstrap/debootstrap --second-stage +if ! /debootstrap/debootstrap --second-stage; then + cat /debootstrap/debootstrap.log 1>&2 + bash + exit 1 +fi rm -f /etc/localtime cp /usr/share/zoneinfo/UTC /etc/localtime @@ -364,12 +370,19 @@ set -x # apt-get update apt-get install -y build-essential linux-source +apt-get install -y bison flex +apt-get install -y libelf-dev +apt-get install -y libssl-dev cd /usr/src tar xf linux-source-* mv linux-source-*/ linux xzcat linux-config-*/config.amd64_none_amd64.xz >linux/.config cd linux +# Adjust configuration. +# +echo 'CONFIG_SYSTEM_TRUSTED_KEYS=""' >>.config + # Adjust kernel command line size limit. # sed -i -re 's/^(#define COMMAND_LINE_SIZE ).+\$/\1 4096/' arch/x86/include/asm/setup.h @@ -437,6 +450,10 @@ for p in \$(sed -e 's/,/ /g' <<<"$extra_pkgs"); do apt-get install -y --no-install-recommends "\$p" done +# We want the utility (smartctl) but not the daemon. +# +systemctl disable smartd + # Create the build user, /build home directory. Make a password-less sudo'er. # # Note that we force UID/GID to specific numbers to make sure they are |