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?
#Pushing the limits of immutability
15 messages · Page 1 of 1 (latest)
When in ABRoot shell, you have full control of your system. You basically removed everything in the future root partition.
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).
Haha, indeed, abroot doesn't guarantee you won't be able to kill your system, only that you'll do it in one shot 😉
No worries, You can boot to the other partition/state now, i.e press Esc upon boot then select on the other state. Within the other state start sudo abroot rollback (if you on latest version of ABRoot) or else start a transaction using sudo ABRoot shell type something like echo hi now wait for the transaction to sync with the broken partition.
This is the exact reason why ABRoot doesn't mount home by default because you can't recover the data back upon rm -rf.
Yep, ABRoot can only rollback to the past state not farther than it.
For example, let's say you removed gnome-session from A, now the system is borked.You can boot into B by pressing Esc immediately after switching on. Then type sudo abroot rollback this will revert the changes made previously in the transaction in A state and sync it with B.
Yes this makes sense.
Now the problem is, I can't boot it.
Can you see GRUB?
No I don't even get that.
That's why u was thinking my boot partition is affected.
Oh, I will nuke my VM later today and let you know the results.
Btw the full command is
sudo rm -rf /* --no-preserve-root
https://media.tenor.com/HxDyev3mE2sAAAAM/kill-remove.gif
And yeah, it's good to test how good the immutability is
Ofc use a spare PC or vm