add global extra_packages

This commit is contained in:
parazyd 2016-10-11 15:18:02 +02:00
parent 9f056db536
commit 6842440a17
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
3 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
tmp
PASSING
rsyncsdk.sh

3
config
View File

@ -40,3 +40,6 @@ export PATH="$R/gcc/armv7-devuan-linux-gnueabihf/bin:$PATH:/sbin"
## static qemu arm binary
qemu_bin="/usr/bin/qemu-arm-static" # Devuan
#qemu_bin="/usr/bin/qemu-arm" # Gentoo
## extra_packages for all images
extra_packages=(wpasupplicant rdate)

View File

@ -104,6 +104,8 @@ copy-kernel-config() {
write-fstab() {
fn write-fstab
req=(strapdir)
ckreq || return 1
cat <<EOF | sudo tee ${strapdir}/etc/fstab ${TEEVERBOSE}
## <file system> <mount point> <type> <options> <dump><pass>
## proc
@ -116,3 +118,13 @@ proc /proc proc nodev,noexec,nosuid 0 0
/dev/mmcblk0p1 /boot vfat noauto 0 0
EOF
}
rdate-to-rclocal() {
fn rdate-to-rclocal
req=(strapdir)
ckreq || return 1
notice "adding rdate to rc.local"
sed -i -e "s/exit 0/rdate -s pool.ntp.org &/" $strapdir/etc/rc.local
print "exit 0" | sudo tee -a $strapdir/etc/rc.local ${TEEVERBOSE}
}