This article shows how we can stage another JUNOS but using only 1 installation file on device.
This will help especially for platforms like QFX5K where space is a constraint.
Unable to copy two installation file on a device.
On a device I have below(only one JUNOS installation file) file present.
{master:0}
root@LAB> file list /var/tmp/jinstall* detail
-rwxrwxrwx 1 root wheel 1618016125 Jul 22 15:01 /var/tmp/jinstall-host-qfx-5e-x86-64-22.2R3-S4.10-secure-signed.tgz*
total files: 1
root@LAB>
root@patcva100> show version
localre:
--------------------------------------------------------------------------
Hostname: LAB
Model: qfx5110-48s-4c
Junos: 22.2R3-S4.10
Now when I do system rollback, it goes to previous version even without the file. Previous version here is 20.4R3-S2.
root@LAB> request system software rollback
Initiating rollback on the Host.
Rolling back to qfx-5e-20.4R3-S2.6.202407241344 image
Rollback staged to image qfx-5e-20.4R3-S2.6.202407241344.
Reboot the system to complete installation!
At this point if you reboot it would go back to 20.4R3-S2.
Then for upgrade to 22.2R3 we can use usual way.