Skip to content

Commit

Permalink
Fix cmdline generation due to sonic_fips
Browse files Browse the repository at this point in the history
  • Loading branch information
Staphylo committed Oct 13, 2022
1 parent 6130d22 commit 9ffabeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions files/Aboot/boot0.j2
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fi

mountpoint_for_file() {
local file="$1"
df "$file" | tail -1 | tr -s " " | cut -d ' ' -f6
df "$file" 2> /dev/null | tail -1 | tr -s " " | cut -d ' ' -f6
}

# extract mount point from the swi path, e.g., /mnt/flash/sonic.swi --> /mnt/flash
Expand Down Expand Up @@ -814,12 +814,12 @@ regular_install() {

mkdir -p $image_path

info "Generating boot-config, machine.conf and cmdline"
write_regular_configs "$image_path"

info "Installing image under $image_path"
extract_image

info "Generating boot-config, machine.conf and cmdline"
write_regular_configs "$image_path"

run_hooks post-install
}

Expand Down

0 comments on commit 9ffabeb

Please sign in to comment.