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
d84d4143
Commit
d84d4143
authored
Jun 21, 2020
by
Igor Pecovnik
Browse files
Bugfix for nightl / stable switching
Tested on Focal, need to be tested elsewhere
parent
bda5b084
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
d84d4143
...
...
@@ -368,21 +368,22 @@ function reload_bsp(){
clear
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
-y
upgrade
# must exits
PACKAGE_INSTALL
=
"linux-image-
${
BRANCH
}
-
${
LINUXFAMILY
}
linux-dtb-
${
BRANCH
}
-
${
LINUXFAMILY
}
"
PACKAGE_PURGE
=
"linux-image* linux-dtb*"
# create install and remove logic
apt
--simulate
--allow-downgrades
-y
--no-install-recommends
install
linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
&>/dev/null
if
[[
$?
-eq
0
]]
;
then
command
=
$(
apt-get
--download-only
--simulate
--allow-downgrades
-y
--no-install-recommends
install
linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
2>/dev/null |
grep
"not possible"
)
errcode
=
$?
if
[[
$errcode
-ne
0
]]
;
then
PACKAGE_INSTALL+
=
" linux-
${
DISTROID
}
-root-
${
BRANCH
}
-
${
BOARD
}
"
PACKAGE_PURGE+
=
" linux-
${
DISTROID
}
-root*"
fi
apt
--simulate
--allow-downgrades
-y
--no-install-recommends
install
linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
&>/dev/null
if
[[
$?
-eq
0
]]
;
then
command
=
$(
apt-get
--download-only
--simulate
--reinstall
--allow-downgrades
-y
--no-install-recommends
install
linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
2>/dev/null |
grep
"not possible"
)
errcode
=
$?
if
[[
$errcode
-ne
0
]]
;
then
PACKAGE_INSTALL+
=
" linux-u-boot-
${
BOARD
}
-
${
BRANCH
}
"
PACKAGE_PURGE+
=
" linux-u-boot-
${
BOARD
}
-*"
fi
...
...
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