Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
52 lines (38 sloc) 1.15 KB
#Angstrom image to test systemd
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
IMAGE_PREPROCESS_COMMAND = "rootfs_update_timestamp ;"
DISTRO_UPDATE_ALTERNATIVES ??= ""
ROOTFS_PKGMANAGE_PKGS ?= '${@oe.utils.conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${ROOTFS_PKGMANAGE} ${DISTRO_UPDATE_ALTERNATIVES}", d)}'
IMAGE_FEATURES += "empty-root-password allow-empty-password"
IMAGE_INSTALL += " \
angstrom-packagegroup-boot \
packagegroup-basic \
${ROOTFS_PKGMANAGE_PKGS} \
update-alternatives-opkg \
systemd-analyze \
cpufreq-tweaks \
fixmac \
"
IMAGE_DEV_MANAGER = "udev"
IMAGE_INIT_MANAGER = "systemd"
IMAGE_INITSCRIPTS = " "
IMAGE_LOGIN_MANAGER = "busybox shadow"
export IMAGE_BASENAME = "base-image"
IMAGE_PREPROCESS_COMMAND += "do_systemd_network ; "
do_systemd_network () {
install -d ${IMAGE_ROOTFS}${sysconfdir}/systemd/network
cat << EOF > ${IMAGE_ROOTFS}${sysconfdir}/systemd/network/10-en.network
[Match]
Name=en*
[Network]
DHCP=yes
EOF
cat << EOF > ${IMAGE_ROOTFS}${sysconfdir}/systemd/network/11-eth.network
[Match]
Name=eth*
[Network]
DHCP=yes
EOF
}
inherit image
You can’t perform that action at this time.