Jump to content
  • 2

[REQ] Manually Changing The Image Partition


Question

Posted

Hello, 

I thought of a feature for experienced users. 
It is a process I often use in SFP GPON modules. It can be seen in Openwrt or Linux-based operating systems.

I would like to see the ability to manually change partitions in KeeneticOS as well. 

One partition could hold the stable version, while the other partition could hold the developer version of KeeneticOS. Similarly, when updating from the developer version to the stable version during an update, the update should be written to the other partition.

Instead of writing the new version to the other partition and performing the version update procedure each time, it would be a good idea to change the partition using a command line or a button in the interface. 


Example application: 

nv getenv sw_commit

If sw_commit returns 0
sw_commit=0

nv setenv sw_commit 1
nv setenv sw_active 1
reboot

-

nv getenv sw_commit

If sw_commit returns 1
sw_commit=1

nv setenv sw_commit 0
nv setenv sw_active 0
reboot

If you want to manage this, you can also set up one partition to always have the stable version and the other partition to always have the developer version. Just switch to the other partition first when you want to update a specific software.

  • Upvote 1

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...