forked from OpenPLi/openpli-oe-core
/
openpli-image.bb
74 lines (64 loc) · 1.62 KB
/
openpli-image.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
require conf/license/openpli-gplv2.inc
inherit image
DEPENDS += " \
zip-native \
"
IMAGE_INSTALL = "\
${ROOTFS_PKGMANAGE} \
3rd-party-feed-configs \
avahi-daemon \
ca-certificates \
distro-feed-configs \
dropbear \
e2fsprogs-e2fsck \
e2fsprogs-mke2fs \
e2fsprogs-tune2fs \
fakelocale \
fuse-exfat \
glibc-binary-localedata-en-gb \
kernel-params \
modutils-loadscript \
nfs-utils-client \
openpli-bootlogo \
openssh-sftp-server \
opkg \
packagegroup-base \
packagegroup-core-boot \
parted \
python-ipaddress \
python-netifaces \
python-pysmb \
nfs-utils \
samba-base \
sdparm \
tuxbox-common \
tzdata \
vsftpd \
"
export IMAGE_BASENAME = "openpli"
IMAGE_LINGUAS = ""
IMAGE_FEATURES += "package-management"
# Remove the mysterious var/lib/opkg/lists that appears to be the result
# of the installer that populates the rootfs. I wanted to call this
# rootfs_remove_opkg_leftovers but that fails to parse.
rootfs_removeopkgleftovers() {
rm -r ${IMAGE_ROOTFS}/var/lib/opkg/lists
}
# Speedup boot by reducing the host key size. The time it takes grows
# exponentially by key size, the default is 2k which takes several
# seconds on most boxes.
rootfs_speedup_dropbearkey() {
echo 'DROPBEAR_RSAKEY_ARGS="-s 1024"' >> ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear
}
# Some features in image.bbclass we do NOT want, so override them
# to be empty. We want to log in as root, but NOT via SSH. So we want
# to live without debug-tweaks...
zap_root_password () {
true
}
ssh_allow_empty_password () {
true
}
license_create_manifest() {
}
ROOTFS_POSTPROCESS_COMMAND += "rootfs_removeopkgleftovers; rootfs_speedup_dropbearkey; "