mirror of
https://github.com/Dasharo/preseeds.git
synced 2026-06-13 10:16:39 -07:00
Merge pull request #39 from Dasharo/fedora-disk-flashing-fix
fedora/ks.cfg: Include common disk drivers to initramfs
This commit is contained in:
@@ -44,6 +44,11 @@ if [[ ! -f "$ISO_PATH" ]]; then
|
||||
wget -O "$ISO_PATH" $ISO_DOWNLOAD_LINK
|
||||
fi
|
||||
|
||||
if [[ -f $OUTPUT_ISO ]]; then
|
||||
echo "$OUTPUT_ISO already exists, replacing the file."
|
||||
rm -f "$OUTPUT_ISO"
|
||||
fi
|
||||
|
||||
xorriso -indev $ISO_PATH \
|
||||
-outdev $OUTPUT_ISO \
|
||||
-compliance no_emul_toc \
|
||||
|
||||
@@ -60,6 +60,9 @@ sed -i 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
|
||||
# Disable Gnome logout prompt (if GNOME is installed)
|
||||
gsettings set org.gnome.SessionManager logout-prompt false || true
|
||||
|
||||
# Regenerate initrafms to force to include all common disk drivers
|
||||
dracut --regenerate-all --force --add-drivers "ahci sd_mod sr_mod nvme usb-storage"
|
||||
|
||||
%end
|
||||
|
||||
reboot
|
||||
|
||||
Reference in New Issue
Block a user