Skip to content

Commit

Permalink
Fixed ramdisk size setup
Browse files Browse the repository at this point in the history
For setting up the brd rd_size option kiwi creates
99-brd.conf used at load time of the kernel brd driver.
The location for the conf file is set to /etc/modprobe.d/
However, in newer versions the location has changed to
/usr/lib/modprobe.d/ and /etc/modprobe.d is no longer
expected to exist. This commit makes sure /etc/modprobe.d
is created if not present.
  • Loading branch information
schaefi committed Sep 6, 2024
1 parent 3fc6bd9 commit 01e4114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function get_disk_list {
local rd_size
local modfile=/etc/modprobe.d/99-brd.conf
rd_size=$(getarg ramdisk_size=)
mkdir -p /etc/modprobe.d
if [ -n "${rd_size}" ];then
echo "options brd rd_size=${rd_size}" > ${modfile}
fi
Expand Down

0 comments on commit 01e4114

Please sign in to comment.