9ea512d5c1
OBS-URL: https://build.opensuse.org/request/show/1172751 OBS-URL: https://build.opensuse.org/package/show/devel:microos:aeon:images/openSUSE-Aeon?expand=0&rev=1
20 lines
629 B
Bash
20 lines
629 B
Bash
#!/bin/bash
|
|
set -euxo pipefail
|
|
[ -x /usr/bin/sdbootutil ] || exit 0
|
|
echo "#######DISK"
|
|
rootuuid=$(findmnt / -n --output uuid)
|
|
sed -i -e "s,\$, root=UUID=$rootuuid," /etc/kernel/cmdline
|
|
arch="$(uname -m)"
|
|
case "$arch" in
|
|
x86_64) arch=x64 ;;
|
|
*) echo "Unsupported arch for Aeon - $arch"; exit 1 ;;
|
|
esac
|
|
echo "install boot loader"
|
|
sdbootutil -v --no-random-seed --arch "$arch" --esp-path /boot/efi --entry-token=auto --no-variables install
|
|
echo "add kernels"
|
|
export hostonly_l=no # for dracut
|
|
sdbootutil -v --arch "$arch" --esp-path /boot/efi --entry-token=auto add-all-kernels
|
|
echo "##### AFTER ####"
|
|
rm -f /boot/mbrid
|
|
find /boot
|