20 |
>= sys-apps/tcp-wrappers-7.6 |
>= sys-apps/tcp-wrappers-7.6 |
21 |
>= sys-libs/pam-1.1 |
>= sys-libs/pam-1.1 |
22 |
>= sys-libs/libcap-2.20 |
>= sys-libs/libcap-2.20 |
23 |
>= sys-apps/util-linux-2.19" |
>= sys-apps/util-linux-2.19 |
24 |
|
>= sys-apps/shadow-4.1" |
25 |
|
|
26 |
if [[ ${SYSVINIT_SUPPORT} = y ]] |
if [[ ${SYSVINIT_SUPPORT} = y ]] |
27 |
then |
then |
155 |
# and symlink what we found to the new-style default.target |
# and symlink what we found to the new-style default.target |
156 |
ln -snf ${target} ${MROOT}/etc/systemd/system/default.target |
ln -snf ${target} ${MROOT}/etc/systemd/system/default.target |
157 |
|
|
158 |
|
# convert modules.autoload |
159 |
|
local modules |
160 |
|
# get only lines which are not commented or empty; |
161 |
|
# if we get any items than the modules.autoload is in use |
162 |
|
modules=$(sed -e '/^#/d' -e '/^$/d' ${MROOT}/etc/modules.autoload) |
163 |
|
if [[ ! -z ${modules} ]] |
164 |
|
then |
165 |
|
[ ! -d ${MROOT}/etc/modules-load.d ] && install -d ${MROOT}/etc/modules-load.d |
166 |
|
echo -e "# Converted by systemd install from /etc/modules.autoload\n#\n#" \ |
167 |
|
> ${MROOT}/etc/modules-load.d/modules.autoload.conf |
168 |
|
cat ${MROOT}/etc/modules.autoload \ |
169 |
|
>> ${MROOT}/etc/modules-load.d/modules.autoload.conf |
170 |
|
fi |
171 |
|
|
172 |
|
# check mtab, and replace with a symlink if requiered |
173 |
|
if [[ ! -L ${MROOT}/etc/mtab ]] || \ |
174 |
|
[[ $(readlink ${MROOT}/etc/mtab) != /proc/self/mounts ]] |
175 |
|
then |
176 |
|
ln -snf /proc/self/mounts ${MROOT}/etc/mtab |
177 |
|
fi |
178 |
|
|
179 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
180 |
then |
then |
181 |
# create machine-id |
# create machine-id |