mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
Merge pull request #756 from marineam/dev
bootengine: fix install when $ROOT is /
This commit is contained in:
commit
f8e5fe779b
@ -58,7 +58,7 @@ src_install() {
|
|||||||
# cpio image in pkg_postinst() where we are free to mount filesystems, chroot,
|
# cpio image in pkg_postinst() where we are free to mount filesystems, chroot,
|
||||||
# and other fun stuff.
|
# and other fun stuff.
|
||||||
pkg_postinst() {
|
pkg_postinst() {
|
||||||
if [[ -n "${ROOT}" ]]; then
|
if [[ "${ROOT:-/}" != / ]]; then
|
||||||
${ROOT}/usr/sbin/update-bootengine -m -c ${ROOT} || die
|
${ROOT}/usr/sbin/update-bootengine -m -c ${ROOT} || die
|
||||||
else
|
else
|
||||||
update-bootengine || die
|
update-bootengine || die
|
||||||
|
Loading…
x
Reference in New Issue
Block a user