anaconda/anaconda-40.22.3.13/dracut/anaconda-copy-cmdline.sh
2024-11-14 21:39:56 -08:00

7 lines
248 B
Bash
Executable file

#!/bin/sh
# Copy over cmdline(.d) files from the initrd to /run before pivot
mkdir -p /run/install/cmdline.d
for f in /etc/cmdline.d/*; do
[ -e "$f" ] && cp "$f" /run/install/cmdline.d/
done
[ -e /etc/cmdline ] && cp /etc/cmdline /run/install/