Skip to content

Commit

Permalink
Specify --xz explicitly when calling dracut to make initrd.
Browse files Browse the repository at this point in the history
Signed-off-by: masteryyh <yanhong.yang@suse.com>
  • Loading branch information
masteryyh authored and Vicente-Cheng committed Jul 3, 2023
1 parent 73619b4 commit 96d3094
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package/harvester-os/files/usr/sbin/gen-kdump-initrd
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ DRACUT_CONFDIR=$TMP_DIR/dracut.conf.d
mkdir -p $INITRD_EXTRACTED_DIR
mkdir -p $DRACUT_CONFDIR


# specify a new dracut config dir to avoid including cOS configs in /etc/dracut.conf.d
cat > $DRACUT_CONFDIR/99-tmp.conf <<EOF
early_microcode="no"
host_only="yes"
EOF
/usr/bin/dracut --confdir $DRACUT_CONFDIR --force --omit "plymouth resume usrmount" --add kdump $TMP_INITRD $KERNEL_VERSION
/usr/bin/dracut --xz --confdir $DRACUT_CONFDIR --force --omit "plymouth resume usrmount" --add kdump $TMP_INITRD $KERNEL_VERSION

# extract initrd and replace fstab and kdump config
cd $INITRD_EXTRACTED_DIR
Expand Down

0 comments on commit 96d3094

Please sign in to comment.