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 23230d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ function get_disk_list {
# load the ramdisk block driver and support custom sizes
local rd_size
local modfile=/etc/modprobe.d/99-brd.conf
if [ ! -d "/etc/modprobe.d" ];then
mkdir -p /etc/modprobe.d
fi
rd_size=$(getarg ramdisk_size=)
if [ -n "${rd_size}" ];then
echo "options brd rd_size=${rd_size}" > ${modfile}
Expand Down

0 comments on commit 23230d6

Please sign in to comment.