#Pushing the limits of immutability

15 messages · Page 1 of 1 (latest)

hollow escarp
#

I wanted to try how foolproof is this system is, so I ran rm -rf /* in an abroot shell. I presumed, it wouldn't kill my system, in the worst case a reboot would solve it, but nope, the system is not bootable. Shouldn't the two root partition layout, and ABRoot prevent these kinds of problems? Perhaps the /boot partition is not protected? Or is it normal it didn't prevent it, or just a bug? What's the intended behaviour in this matter?

tall pike
#

When in ABRoot shell, you have full control of your system. You basically removed everything in the future root partition.

hollow escarp
#

Of course I know that. That's why I did it.
Because I have 2 root partitions. In this case, shouldn't this be overwritten by the current, unaltered root partition, as a failed transaction? (Because it did fail).

lofty plank
#

Haha, indeed, abroot doesn't guarantee you won't be able to kill your system, only that you'll do it in one shot 😉

spark compass
#

This is the exact reason why ABRoot doesn't mount home by default because you can't recover the data back upon rm -rf.

spark compass
hollow escarp
spark compass
hollow escarp
spark compass
#

Oh, I will nuke my VM later today and let you know the results.

tall pike
#

And yeah, it's good to test how good the immutability is

#

Ofc use a spare PC or vm