From 3f4e577959b768e3e6be3390d21ea4349c989724 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 22 Dec 2019 15:20:45 +0100 Subject: [PATCH] Remove unused variable $5 (kernel_opts) in setup_extlinux() --- alpine-make-vm-image | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/alpine-make-vm-image b/alpine-make-vm-image index 143e720..8cce918 100755 --- a/alpine-make-vm-image +++ b/alpine-make-vm-image @@ -244,12 +244,11 @@ rc_add() { setup_extlinux() { local mnt="$1" # path of directory where is root device currently mounted local root_dev="$2" # root device - local modules="${3:-}" # modules which should be loaded before pivot_root + local modules="$3" # modules which should be loaded before pivot_root local default_kernel="${4:-"vanilla"}" # name of default kernel to boot - local kernel_opts="${5:-}" # default kernel options sed -Ei -e "s|^[# ]*(root)=.*|\1=$root_dev|" \ - -e "s|^[# ]*(default_kernel_opts)=.*|\1=\"$kernel_opts\"|" \ + -e "s|^[# ]*(default_kernel_opts)=.*|\1=\"\"|" \ -e "s|^[# ]*(modules)=.*|\1=\"$modules\"|" \ -e "s|^[# ]*(default)=.*|\1=$default_kernel|" \ "$mnt"/etc/update-extlinux.conf