75 |
local __file |
local __file |
76 |
|
|
77 |
# add lp usr/group |
# add lp usr/group |
78 |
egrep '^lp:' /etc/passwd >> "$initdir/etc/passwd" |
egrep '^lp:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd" |
79 |
# group file is fully included atm |
# group file is fully included atm |
80 |
#egrep '^lp:' /etc/group >> "$initdir/etc/group" |
#egrep '^lp:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group" |
81 |
|
|
82 |
# networking stuff |
# networking stuff |
83 |
dracut_install ifconfig ip route udhcpc iwconfig wpa_supplicant chroot systemd-nspawn |
dracut_install ifconfig ip route udhcpc iwconfig wpa_supplicant chroot systemd-nspawn |
84 |
inst /usr/share/udhcpc/default.script |
inst @@DATADIR@@/udhcpc/default.script |
85 |
inst_simple "$moddir/net-lib.sh" /lib/net-lib.sh |
inst_simple "$moddir/net-lib.sh" /lib/net-lib.sh |
86 |
|
|
87 |
# mcored config stuff |
# mcored config stuff |
90 |
# mcored |
# mcored |
91 |
# install all busybox modules |
# install all busybox modules |
92 |
dracut_install busybox |
dracut_install busybox |
93 |
for __file in $(cat /usr/share/busybox/busybox.links) |
for __file in $(cat @@DATADIR@@/busybox/busybox.links) |
94 |
do |
do |
95 |
inst_symlink ${__file} |
inst_symlink ${__file} |
96 |
done |
done |
97 |
# install things which are needed but not provided by our busybox |
# install things which are needed but not provided by our busybox |
98 |
dracut_install find install sslsvd touch |
dracut_install find install sslsvd touch |
99 |
inst /etc/mageversion |
inst @@SYSCONFDIR@@/mageversion |
100 |
inst /etc/conf.d/network |
inst @@CONFDDIR@@/network |
101 |
inst /etc/ssl/certs/mcored.pem |
inst @@SSLDIR@@/certs/mcored.pem |
102 |
inst /etc/ssl/private/mcored.key |
inst @@SSLDIR@@/private/mcored.key |
103 |
inst_dir /var/lib/mcored |
inst_dir @@MCORE_CHROOTDIR@@ |
104 |
inst /etc/conf.d/mcored |
inst @@CONFDDIR@@/mcored |
105 |
inst /etc/mcore/mcore.conf |
inst @@SYSCONFDIR@@/mcore/mcore.conf |
106 |
inst /etc/mcoredpasswd |
inst @@SYSCONFDIR@@/mcoredpasswd |
107 |
for __file in $(find /usr/lib/mcored/include -type f) |
for __file in $(find @@MCORE_LIBDIR@@/include -type f) |
108 |
do |
do |
109 |
inst ${__file} |
inst ${__file} |
110 |
done |
done |
111 |
inst /usr/lib/mcored/mcored |
inst @@MCORE_LIBDIR@@/mcored |
112 |
inst /usr/lib/mcored/mcore-generate-certificate |
inst @@MCORE_LIBDIR@@/mcore-generate-certificate |
113 |
inst /usr/lib/mcored/mcorepasswd |
inst @@MCORE_LIBDIR@@/mcorepasswd |
114 |
inst /usr/lib/mcored/VERSION |
inst @@MCORE_LIBDIR@@/VERSION |
115 |
inst_symlink /usr/sbin/mcored |
inst_symlink @@SBINDIR@@/mcored |
116 |
inst_symlink /usr/bin/mcorepasswd |
inst_symlink @@SBINDIR@@/mcorepasswd |
117 |
|
|
118 |
inst_hook pre-pivot 90 "$moddir"/run-mcored.sh |
inst_hook pre-pivot 90 "$moddir"/run-mcored.sh |
119 |
} |
} |