evbarm: liveimage: use RC_CONF_EXTRA instead of rc.conf.d
This commit is contained in:
parent
e5de8b183d
commit
9764bcee56
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2021/07/24 14:00:08 jmcneill Exp $
|
||||
|
||||
LIVEIMGBASE= NetBSD-${DISTRIBVER}-${MACHINE_ARCH}-live # gives ${IMGBASE}.img
|
||||
|
||||
@ -10,13 +10,9 @@ IMAGEHOSTNAME= netbsd
|
||||
FILESDIR!= cd ${.CURDIR}/../../../utils/embedded/files ; pwd
|
||||
|
||||
SPEC_EXTRA= ${.CURDIR}/spec.armimage
|
||||
RC_CONF_EXTRA= ${.CURDIR}/rc.conf.armimage
|
||||
IMGFILE_EXTRA= \
|
||||
${FILESDIR}/ec2_init etc/rc.d/ec2_init \
|
||||
${FILESDIR}/resize_gpt etc/rc.d/resize_gpt \
|
||||
${.CURDIR}/dhcpcd etc/rc.conf.d/dhcpcd \
|
||||
${.CURDIR}/ec2_init etc/rc.conf.d/ec2_init \
|
||||
${.CURDIR}/resize_gpt etc/rc.conf.d/resize_gpt \
|
||||
${.CURDIR}/resize_root etc/rc.conf.d/resize_root \
|
||||
${.CURDIR}/sshd etc/rc.conf.d/sshd
|
||||
${FILESDIR}/resize_gpt etc/rc.d/resize_gpt
|
||||
|
||||
.include "${.CURDIR}/../Makefile.liveimage"
|
||||
|
@ -1,3 +0,0 @@
|
||||
# $NetBSD: dhcpcd,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
|
||||
dhcpcd=YES
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: ec2_init,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
# $NetBSD: rc.conf.armimage,v 1.1 2021/07/24 14:00:08 jmcneill Exp $
|
||||
|
||||
is_ec2() {
|
||||
val=NO
|
||||
@ -23,9 +23,14 @@ is_ec2() {
|
||||
printf $val
|
||||
}
|
||||
|
||||
# Don't override /etc/rc.conf
|
||||
if [ -z "$ec2_init" ]
|
||||
then
|
||||
ec2_init=$(is_ec2)
|
||||
fi
|
||||
resize_gpt=YES
|
||||
resize_root=YES
|
||||
resize_root_flags="-p"
|
||||
resize_root_postcmd="/sbin/reboot -n"
|
||||
dhcpcd=YES
|
||||
sshd=YES
|
||||
ec2_init=$(is_ec2)
|
||||
|
||||
if checkyesno ec2_init; then
|
||||
dhcpcd_flags="$dhcpcd_flags -w"
|
||||
fi
|
@ -1,3 +0,0 @@
|
||||
# $NetBSD: resize_gpt,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
|
||||
resize_gpt=YES
|
@ -1,5 +0,0 @@
|
||||
# $NetBSD: resize_root,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
|
||||
resize_root=YES
|
||||
resize_root_flags="-p"
|
||||
resize_root_postcmd="/sbin/reboot -n"
|
@ -1,8 +1,3 @@
|
||||
# $NetBSD: spec.armimage,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
./etc/rc.conf.d/dhcpcd type=file mode=0644 uname=root gname=wheel
|
||||
./etc/rc.conf.d/ec2_init type=file mode=0644 uname=root gname=wheel
|
||||
./etc/rc.conf.d/resize_gpt type=file mode=0644 uname=root gname=wheel
|
||||
./etc/rc.conf.d/resize_root type=file mode=0644 uname=root gname=wheel
|
||||
./etc/rc.conf.d/sshd type=file mode=0644 uname=root gname=wheel
|
||||
# $NetBSD: spec.armimage,v 1.2 2021/07/24 14:00:08 jmcneill Exp $
|
||||
./etc/rc.d/ec2_init type=file mode=0555 uname=root gname=wheel
|
||||
./etc/rc.d/resize_gpt type=file mode=0555 uname=root gname=wheel
|
||||
|
@ -1,3 +0,0 @@
|
||||
# $NetBSD: sshd,v 1.1 2021/07/23 21:53:34 jmcneill Exp $
|
||||
|
||||
sshd=YES
|
Loading…
Reference in New Issue
Block a user