Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions dracut/99setup-root/initrd-setup-root
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,8 @@ MACHINE_ID_FILE="/sysroot/etc/machine-id"
# Initialize base filesystem
systemd-tmpfiles --root=/sysroot --create \
baselayout.conf baselayout-etc.conf baselayout-usr.conf \
baselayout-home.conf etc.conf etc-shadow.conf

# Not all images provide these files so check before using them.
# Note: selinux-base.conf must run before libsemanage.conf
for config in baselayout-ldso.conf selinux-base.conf libsemanage.conf; do
if [ -e "/sysroot/usr/lib/tmpfiles.d/${config}" ]; then
systemd-tmpfiles --root=/sysroot --create "${config}"
fi
done
baselayout-home.conf etc.conf etc-shadow.conf selinux-base.conf \
libsemanage.conf

# This creates the modifiable users/groups in /sysroot/etc,
# initializing the shadow database in the process.
Expand Down