Remove unused variable $5 (kernel_opts) in setup_extlinux()
This commit is contained in:
parent
e3867f2ebc
commit
3f4e577959
1 changed files with 2 additions and 3 deletions
|
@ -244,12 +244,11 @@ rc_add() {
|
||||||
setup_extlinux() {
|
setup_extlinux() {
|
||||||
local mnt="$1" # path of directory where is root device currently mounted
|
local mnt="$1" # path of directory where is root device currently mounted
|
||||||
local root_dev="$2" # root device
|
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 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|" \
|
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|^[# ]*(modules)=.*|\1=\"$modules\"|" \
|
||||||
-e "s|^[# ]*(default)=.*|\1=$default_kernel|" \
|
-e "s|^[# ]*(default)=.*|\1=$default_kernel|" \
|
||||||
"$mnt"/etc/update-extlinux.conf
|
"$mnt"/etc/update-extlinux.conf
|
||||||
|
|
Loading…
Reference in a new issue