Skip to content

Commit

Permalink
Merge pull request #7179 from Obihoernchen/fix-dracut-warnings
Browse files Browse the repository at this point in the history
Fix warnings of newer dracut versions
  • Loading branch information
besawn committed Jul 7, 2022
2 parents 77926b0 + be8297e commit ecb0232
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions xCAT-server/share/xcat/netboot/rh/genimage
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,9 @@ sub mkinitrd_dracut {
}
}

print $DRACUTCONF qq{dracutmodules+="$dracutmodulelist"\n};
print $DRACUTCONF qq{add_drivers+="$add_drivers"\n};
print $DRACUTCONF qq{filesystems+="nfs"\n};
print $DRACUTCONF qq{dracutmodules+=" $dracutmodulelist "\n};
print $DRACUTCONF qq{add_drivers+=" $add_drivers "\n};
print $DRACUTCONF qq{filesystems+=" nfs "\n};
close $DRACUTCONF;
} elsif ($mode eq "stateless") {
cp("$fullpath/$dracutdir/install.netboot", "$dracutmpath/install");
Expand Down Expand Up @@ -1146,8 +1146,8 @@ sub mkinitrd_dracut {

# update etc/dracut.conf
open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf");
print $DRACUTCONF qq{dracutmodules+="$dracutmodulelist"\n};
print $DRACUTCONF qq{add_drivers+="$add_drivers"\n};
print $DRACUTCONF qq{dracutmodules+=" $dracutmodulelist "\n};
print $DRACUTCONF qq{add_drivers+=" $add_drivers "\n};
close $DRACUTCONF;
} else {
xdie "the mode: $mode is not supported by genimage";
Expand Down
14 changes: 7 additions & 7 deletions xCAT-server/share/xcat/netboot/sles/genimage
Original file line number Diff line number Diff line change
Expand Up @@ -1097,13 +1097,13 @@ sub mkinitrd_dracut {
#update etc/dracut.conf
open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf");
if (-d glob($dracutmoduledir . "[0-9]*fadump")) {
print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules lvm fadump"\n};
print $DRACUTCONF qq{dracutmodules+=" xcat nfs base network kernel-modules lvm fadump "\n};
}
else {
print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules lvm"\n};
print $DRACUTCONF qq{dracutmodules+=" xcat nfs base network kernel-modules lvm "\n};
}
print $DRACUTCONF qq{add_drivers+="$add_drivers"\n};
print $DRACUTCONF qq{filesystems+="nfs"\n};
print $DRACUTCONF qq{add_drivers+=" $add_drivers "\n};
print $DRACUTCONF qq{filesystems+=" nfs "\n};
close $DRACUTCONF;
} elsif ($mode eq "stateless") {
cp("$fullpath/$dracutdir/install.netboot", "$dracutmpath/install");
Expand Down Expand Up @@ -1135,12 +1135,12 @@ sub mkinitrd_dracut {
# update etc/dracut.conf
open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf");
if (-d glob($dracutmoduledir . "[0-9]*fadump")) {
print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules lvm fadump syslog"\n};
print $DRACUTCONF qq{dracutmodules+=" xcat nfs base network kernel-modules lvm fadump syslog "\n};
}
else {
print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules lvm syslog"\n};
print $DRACUTCONF qq{dracutmodules+=" xcat nfs base network kernel-modules lvm syslog "\n};
}
print $DRACUTCONF qq{add_drivers+="$add_drivers"\n};
print $DRACUTCONF qq{add_drivers+=" $add_drivers "\n};
close $DRACUTCONF;
} else {
xdie "the mode: $mode is not supported by genimage";
Expand Down
10 changes: 5 additions & 5 deletions xCAT-server/share/xcat/netboot/ubuntu/genimage
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,9 @@ sub mkinitrd_dracut {

# update etc/dracut.conf
open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf");
print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules"\n};
print $DRACUTCONF qq{add_drivers+="$add_drivers"\n};
print $DRACUTCONF qq{filesystems+="nfs"\n};
print $DRACUTCONF qq{dracutmodules+=" xcat nfs base network kernel-modules "\n};
print $DRACUTCONF qq{add_drivers+=" $add_drivers "\n};
print $DRACUTCONF qq{filesystems+=" nfs "\n};
close $DRACUTCONF;
} elsif ($mode eq "stateless") {
cp("$fullpath/$dracutdir/install.netboot", "$dracutmpath/install");
Expand Down Expand Up @@ -977,8 +977,8 @@ sub mkinitrd_dracut {

# update etc/dracut.conf
open($DRACUTCONF, '>', "$rootimg_dir/etc/dracut.conf");
print $DRACUTCONF qq{dracutmodules+="xcat nfs base network kernel-modules"\n};
print $DRACUTCONF qq{add_drivers+="$add_drivers"\n};
print $DRACUTCONF qq{dracutmodules+=" xcat nfs base network kernel-modules "\n};
print $DRACUTCONF qq{add_drivers+=" $add_drivers "\n};
close $DRACUTCONF;
} else {
xdie "the mode: $mode is not supported by genimage";
Expand Down

0 comments on commit ecb0232

Please sign in to comment.