Skip to content

Commit

Permalink
initramfs/config: move debootstrap include packages to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jjakob committed Feb 17, 2021
1 parent 846a1ce commit ac15d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion initramfs/config
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
mp=/tmp/newroot
default_debian_suite=buster
default_debian_mirror="http://httpredir.debian.org/debian"
include_packages="vim,openssh-server,ntpdate,cron,locales,udev,fake-hwclock,mtd-utils,ca-certificates,apt-transport-https,vlan,libnl-3-200,libnl-genl-3-200"

set_host() {
case `hostname` in
Expand Down Expand Up @@ -175,7 +176,7 @@ bootstrap() {
fi
PATH=/bin:/usr/bin:/sbin:/usr/sbin:$PATH
export PATH
debootstrap --arch=mipsel --include=vim,openssh-server,ntpdate,cron,locales,udev,fake-hwclock,mtd-utils,ca-certificates,apt-transport-https,vlan,libnl-3-200,libnl-genl-3-200 "$debian_version" "$mp" "$debian_mirror" || exit 1
debootstrap --arch=mipsel --include="$include_packages" "$debian_version" "$mp" "$debian_mirror" || exit 1
return 1
}

Expand Down

0 comments on commit ac15d86

Please sign in to comment.