ashos / ashos

The immutable/mutable meta-distribution (universal bootstrapper)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_next_snapshot() bug

i2 opened this issue · comments

commented

In a fresh install, the following error appears:

image

To reproduce this:

  • Do a fresh install of AshOS (any distro)
  • Boot into base snapshot
  • sudo ash clone 0
  • DONOT run any ash deploy commands
  • sudo ash del 1 will cause an error regarding get_next_snapshot() as there is no "snapshot-deploy-aux" yet

Preliminary fix would be to comment 2 lines at:

ashos/src/ashpk_core.py

Lines 251 to 252 in 665329c

elif snapshot == get_next_snapshot():
print("F: Cannot delete deployed snapshot.")

Notes:

  • Currently deployed snapshot is "snapshot-deploy"
  • "snapshot-deploy-aux" doesn't exist as no deploy command has been run yet

I'm on it!