From bed6cddade88f1a7745a2e21eb92a922ab11a110 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 5 Mar 2019 09:30:51 +0100 Subject: [PATCH] package and apt configuration --- Makefile | 19 +++++++++++++------ debian-archive-stretch-stable.gpg | Bin 0 -> 2275 bytes files/etc/apt/sources.list | 3 +++ 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 debian-archive-stretch-stable.gpg create mode 100644 files/etc/apt/sources.list diff --git a/Makefile b/Makefile index 26126d6..9487b5b 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ deb http://raspbian.raspberrypi.org/raspbian stretch main non-free firmware rpi\ deb http://archive.raspberrypi.org/debian stretch main\n endef -PACKAGES := apt bluez bluez-firmware bluez-tools btrfs-tools busybox-static bzip2 ca-certificates cron deborphan firmware-brcm80211 firmware-linux-free firmware-misc-nonfree gzip htop ifupdown init iputils-ping irqbalance isc-dhcp-client less libraspberrypi-bin libraspberrypi0 make net-tools nmap ntpdate openssh-client openssh-server pi-bluetooth rpi-update rsync ssh sshfs sudo systemd traceroute unzip vim wget wireless-tools wpasupplicant xz-utils zip xserver-xorg-video-fbturbo xserver-xorg nodm xfce4 xvkbd xfce4-terminal +PACKAGES := apt bluez bluez-firmware bluez-tools btrfs-tools busybox-static bzip2 ca-certificates cron debian-archive-keyring deborphan firmware-brcm80211 firmware-linux-free firmware-misc-nonfree gzip htop ifupdown init iputils-ping irqbalance isc-dhcp-client less libraspberrypi-bin libraspberrypi0 make net-tools nmap ntpdate openssh-client openssh-server pi-bluetooth raspberrypi-bootloader raspberrypi-kernel rsync ssh sshfs sudo systemd traceroute unzip vim wget wireless-tools wpasupplicant xz-utils zip xserver-xorg-video-fbturbo xserver-xorg nodm xauth x2x xfce4 xvkbd xfce4-terminal blueman # Do not change, only override in config.mk WIFI-SSID = @@ -44,9 +44,16 @@ raspi_root: --arch=armhf --variant=minbase \ stretch "$@/" "${BOOTSTRAP}" -raspi_root/: raspi_root .FORCE +raspi_root/etc/apt/apt.conf.d/10norecommends: raspi_root + mkdir -p "$"$@" + chmod 644 "$@" + +norecommends: raspi_root/etc/apt/apt.conf.d/10norecommends + +raspi_root/: raspi_root norecommends .FORCE printf '${SOURCES}' >$@/etc/apt/sources.list - -chroot "$@" apt-key add - <./raspberrypi-archive-keyring.gpg + -chroot "$@" apt-key add - <./*.gpg -cp /etc/resolv.conf "$@etc/" -chroot "$@" sh -c 'apt-mark showmanual |xargs apt-mark auto' -chroot "$@" apt-get update @@ -54,8 +61,8 @@ raspi_root/: raspi_root .FORCE chroot "$@" apt-get --yes install ${PACKAGES} chroot "$@" apt-get --yes --auto-remove purge chroot "$@" apt-get --yes --auto-remove upgrade - chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ] - -[ -d "$@/boot.bak/" ] && rm -r "$@/boot.bak/" + # chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ] + # -[ -d "$@/boot.bak/" ] && rm -r "$@/boot.bak/" sync chroot "$@" apt-get clean chroot "$@" rm /usr/local/sbin/invoke-rc.d @@ -79,7 +86,7 @@ include *.mk raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi -rmdir "$@.mnt" mkdir "$@.mnt" # fail receipe if dir is nonempty - dd bs=1M count=0 seek=3072 of="$@" # set up sparse file + dd bs=1M count=0 seek=1280 of="$@" # set up sparse file sfdisk "$@" **n|C0n>uElr1|H+;07dIOS z$Mir)$kDmb=bmGmqH$3{7Rq|2AzV7bQ=`c$53f0)jzWaWAG`s&enu=?{Q+}WvZIMR z^|g0pB(hL4+ANV=UTveJox_48)fWLj3Ys!-yi+zzwuVw;t|$AGWw0U41HsDx$!0Rl zMO}HFoWDsi>crhQ2ySUA#=TLmEEd%MXY+~6Q)rqCkxb+eF!`FZk$cs#zE%mqb?a!k z+NNE`Y6D}5Y<8-1Z|=a{KFU-Z%Gkdaf_-pU>b96i+OU;BtTrKf$p&`|OhJ1{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z zpv#qsmQLj{2c?5$2S}N)0ssJs0vrSo0SEvF1p-+o7W)7S2@u83UBbme%~_AZ5C2@b z832iZbT2L<%2*=Mq6BqjDQ^Ndgk(5cYH zR!|t2S08!-5!z+gtT2NQ#I;A`QJ_|g6_ld8v~Qqlo??r6=?o*1SDi@9hYMuP=!)R5 z%TjXv&T4FX*h6iM@SGF@ab47c-Uwvt3KMB7IKecqR4(|yJjNtLCBK_)Jc}sum8D#+ z4IV3q=&OO5$F!5`*n_a0b5t*jeW&aKULN*@4dJ9Vfd`KW5yBNS!Ee6imrk@k8$aG!U*svdTc1IRiK zF5(}o30vTGl{;*;W#;a|>1S5FgZhU_BE_>#QZFHv96J-KI71PfQM?6OD9!k(o*7wJ xSkjaNs>Q-6L51!sIRW-*@Uv0iG^w%#p06`x`}%gF>-*mv*6h%KZQ`&3000OsE~5Yd literal 0 HcmV?d00001 diff --git a/files/etc/apt/sources.list b/files/etc/apt/sources.list new file mode 100644 index 0000000..a3638b4 --- /dev/null +++ b/files/etc/apt/sources.list @@ -0,0 +1,3 @@ +deb http://raspbian.raspberrypi.org/raspbian stretch main non-free firmware rpi +deb http://archive.raspberrypi.org/debian stretch main + -- 2.39.2