Skip to content

Boot different ONIE mode

Amy Buck edited this page Nov 20, 2018 · 1 revision

You can boot a software image from the Linux shell (in OPX runtime) into ONIE.

1. Change the next boot to ONIE using Grub.

$ sudo grub-reboot --boot-directory=/mnt/boot ONIE

2. Change ONIE mode to Install, Rescue, or Uninstall mode.

$ sudo /mnt/onie-boot/onie/tools/bin/onie-boot-mode -o install
$ sudo /mnt/onie-boot/onie/tools/bin/onie-boot-mode -o rescue
$ sudo /mnt/onie-boot/onie/tools/bin/onie-boot-mode -o uninstall

3. Reboot the switch.

$ sudo reboot

Next boot to ONIE Install mode

$ sudo grub-reboot --boot-directory=/mnt/boot ONIE
$ sudo /mnt/onie-boot/onie/tools/bin/onie-boot-mode -o install
$ sudo reboot

...


  Booting `ONIE: Install OS'

ONIE: OS Install Mode ...
Version   : 3.21.1.1
Build Date: 2015-03-17T12:32-0700
Info: Mounting kernel filesystems... done.
Info: Mounting LABEL=ONIE-BOOT on /mnt/onie-boot ...
Info: Using eth0 MAC address: 34:17:eb:f2:57:c4
Info: Using eth1 MAC address: 34:17:eb:f2:57:c5
Info: eth0:  Checking link... scsi 6:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
sd 6:0:0:0: [sdb] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 6:0:0:0: [sdb] Attached SCSI removable disk
up.
Info: Trying DHCPv4 on interface: eth0
...
Clone this wiki locally