Skip to content

Commit

Permalink
fix: makepart: don't add rd.break to commandline
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Jul 26, 2024
1 parent 9be7a91 commit 0c3fef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/image.d/makepart
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ if [[ -n "$(find "$dracut_include/etc/repart.d/" -name "1.*.conf")" ]] || { [[ -
fi

read -r _ cmdline < "$rootfs/etc/kernel/cmdline" # hacky assumption that root= is always at start of kernel cmdline. TODO: find better way to handle this
cmdline="rd.break systemd.journald.forward_to_console=1 $cmdline"
cmdline="$cmdline"

Check warning

Code scanning / shellcheck

This variable is assigned to itself, so the assignment does nothing. Warning

This variable is assigned to itself, so the assignment does nothing.
if [[ -z "$(cat "$root_hash")" ]]; then
if [[ -z "$(cat "$root_repart")" ]]; then
root_source=$(tail -n 1 "$fstab" | cut -d " " -f 1)
Expand Down

0 comments on commit 0c3fef0

Please sign in to comment.