Skip to content

Commit

Permalink
Merge pull request #6141 from M4rtinK/rhel-10-apply_dracut_config_ove…
Browse files Browse the repository at this point in the history
…rride

Add systemd override to make /usr RW in Dracut
  • Loading branch information
rvykydal authored Feb 7, 2025
2 parents 18a1e4e + cd1d563 commit df16999
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dracut/20_rw_usr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Manager]
ProtectSystem=no
3 changes: 2 additions & 1 deletion dracut/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ dist_dracut_SCRIPTS = module-setup.sh \
driver_updates.py \
anaconda-nfsrepo-cleanup.sh

dist_dracut_DATA = [email protected]
dist_dracut_DATA = [email protected] \
20_rw_usr.conf

MAINTAINERCLEANFILES = Makefile.in
2 changes: 2 additions & 0 deletions dracut/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ install() {
inst "$moddir/driver_updates.py" "/bin/driver-updates"
inst "/usr/sbin/modinfo"
inst_simple "$moddir/[email protected]" "/etc/systemd/system/[email protected]"
# Make the /usr mountpoint RW in Dracut with systemd version >= 256, see RHEL-77192 for details.
inst_simple "$moddir/20_rw_usr.conf" "/etc/systemd/system.conf.d/20_rw_usr.conf"
# rpm configuration file (needed by dd_extract)
inst "/usr/lib/rpm/rpmrc"
# timeout script for errors reporting
Expand Down

0 comments on commit df16999

Please sign in to comment.