mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 17:57:01 +00:00
Use the new onl-onie-boot-mode tool.
This commit is contained in:
@@ -3,26 +3,13 @@ set -e
|
||||
|
||||
uninstall_x86_64()
|
||||
{
|
||||
#
|
||||
# Set ONIE boot selection to uninstall
|
||||
#
|
||||
mkdir -p /mnt/onie-boot
|
||||
mount -L ONIE-BOOT /mnt/onie-boot > /dev/null 2>&1
|
||||
|
||||
if [ "$1" = "factory" ]; then
|
||||
/mnt/onie-boot/onie/tools/bin/onie-boot-mode -o uninstall
|
||||
mode=uninstall
|
||||
else
|
||||
/mnt/onie-boot/onie/tools/bin/onie-boot-mode -o install
|
||||
mode=install
|
||||
fi
|
||||
|
||||
umount /mnt/onie-boot
|
||||
|
||||
#
|
||||
# Select ONIE as the boot default
|
||||
#
|
||||
onl-mounts mount boot --rw
|
||||
echo "set default=ONIE" >> /mnt/onl/boot/grub/grub.cfg
|
||||
onl-mounts mount boot
|
||||
onl-onie-boot-mode $mode
|
||||
}
|
||||
|
||||
uninstall_uboot()
|
||||
|
||||
Reference in New Issue
Block a user