Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
16c96c97
Commit
16c96c97
authored
Mar 31, 2018
by
Igor Pecovnik
Browse files
Force new boot script install when changing kernel
parent
6a939384
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
16c96c97
...
...
@@ -1088,7 +1088,7 @@ function jobs ()
aptitude remove ~nlinux-dtb
--quiet
=
100
-y
>>
/var/log/upgrade.log
aptitude remove ~nlinux-headers
--quiet
=
100
-y
>>
/var/log/upgrade.log
fi
# install new
# install new
packages
INSTALL_DTB
=
""
[[
-n
$(
apt-cache search
--names-only
"^linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
)
]]
&&
\
INSTALL_DTB
=
"linux-dtb
$TARGET_BRANCH
-
$TARGET_FAMILY
"
...
...
@@ -1096,6 +1096,10 @@ function jobs ()
linux-headers
${
TARGET_BRANCH
}
-
${
TARGET_FAMILY
}
linux-u-boot-
${
BOARD
}
-
${
UBOOT_BRANCH
}
\
linux-
$(
lsb_release
-cs
)
-root
$TARGET_BRANCH
-
$BOARD
$INSTALL_DTB
# install new boot script
[[
-f
/usr/share/armbian/boot.cmd
]]
&&
cp
/usr/share/armbian/boot.cmd /boot/boot.cmd
&&
mkimage
-C
none
-A
arm
-T
script
-d
/boot/boot.cmd /boot/boot.scr
[[
-f
/usr/share/armbian/boot.ini
]]
&&
cp
/usr/share/armbian/boot.ini /boot/boot.ini
dialog
--title
"Kernel switch"
--backtitle
"
$BACKTITLE
"
--yes-label
"Yes"
--no-label
"Cancel"
\
--yesno
"
\n
New kernel was installed. Reboot?"
7 64
exitstatus
=
$?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment