-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boot menu with XBian versions #7
Comments
this is what I'm doing now https://github.com/mk01/btrfs-auto-snapshot ... i need to implement rollback through rename in initramfs and voala... On 14.4.2013, at 15:05, CurlyMoo [email protected] wrote:
|
Cool |
for start perfect would be possibility to load to rescue mode (shell) without messing with device, card, editing ... currently, there is no bootload for arm, but what about some curl cli hacking. should be possible, not ??? |
I have no idea what you're trying to ask/explain here :p |
But i can of course give my suggestion: Have a script check all the snapshots that exists of the root partition and load these snapshots in a Another idea would be to add the possibility for system-restore-points. Let's say someone wants to install a new package through apt. Then the workflow would be:
Now, would this break the boot, the user can be shown a recovery menu with all the restore-points (as in snapshots) available (including the different xbian snapshots like in the boot menu) and start for a previous version. If the users wants to rollback, you can add a script like:
So this would essentially make two boot menu's. One simple menu with only previous XBian versions and an advanced menu with the additional restore-points. The user should then be given the possibility to switch between the two. |
that currently there is no convenient solution, how to alter booting ! you have to complicatedly use other pcs, moving the media etc. but what I invented is the shift key, you can hold during booting which will put you into rescue shell immediately - while killing splash as well, restoring text mode. you can do what you need without moving from the raspberry. and what I wanted to ask, is it too much to have "light" version of xbian-config in initramfs ??? |
Of course, it just uses |
I was still hoping you can adapt. What I see there is first RPI with safe boot options provided ad hoc on ones needs. Plug keyboard, reboot, hold shift, ... a user gui shows with recovery options, partition management, partition copy from device to device, emergency fsck... |
Like i told you before, i don't have anymore time to develop. Therefore i put a lot of effort to document everything well. So it's just a breeze to create new xbian-config modules: |
ok, I will push @Koenkk then :))) |
And you're totally right. XBian will be the first with these cool features as we where the first RPi distro with an animated splash and such. |
i'm currently at 52 s with full xvmc, if we need less, we need to look into initramfs. at least I can't do anything more with the scripts after initramfs. no more ideas. |
If you think you're done for now, than consider releasing Beta 1. Maybe you can help @Koenkk creating the update? |
To help you guys a little bit. I created a stripped down version of xbian-config-bash in a separate branch: |
If I will post something, definitely not a "story changer", minor bugs at max, but the structure is final for now. t I will look later to the config-bash. And with the beta, you know I will never reject ask for help... But I'm not always available at all times. But Koennk has my Skype and email - which I'm following online. So at least I can get notified. |
Is this already implemented? i've seen code about this, but as i understand, it need a keyboard to activate boot menu. i was talking about this at the beginning of xbian, i've a lacie nas (networkspace), without button, and the reset, was 2 power on/off rapidly. We could maybe use something like this (maybe only when keyboard are not detected): If device is reboot (unplug) during initramfs, (with help of some flag file in boot partition), next reboot will boot in the menu. This is not very ergonomic, but with 2 reboot, you can reboot in @last_goodknow, or vanilla install, without unplugged the card or plug anything on the pi. if you believe it's possible to do (i don't see something that can block, but you know the code better), i can take a try, i should have a sometime again now. |
indeed this is basically present. the current code is (considering my default style-nonstyle) still good readable so you should get the point.
then it shows dialog providing this options to user (with a timeout). after no action the previous boot process continues. so the foundation is there - it's up to us what we make out of it. |
@mk01, I was thinking about our talk on IRC yesterday and that hardly anyone understands how our failsafe mechanisms work. apt downgrade, btrfs snapshots rollback / boot. I think a key feature to make users aware is to add this bootmenu with the 3 snapshots. Then users always I also think we should add a message in xbian-config and in the shell that explains that users can always downgrade when apt upgrade fails. In xbian-config, it should be made easy to actually downgrade. |
better idea - let's finally do "tips". showing at console upon login. oneliners. in the meaning:
|
Yes, but only users using the command line will see those tips. Not regular users. |
Ahh, i've done code fr that few times ago, but wasn't able to do it working, But i'm now tring to add bluetooth (and A2dp sink) directly inside xbmc, and it takes a bit times, i've already extends DBus messaging, add a DBus handler , hope to have a first test soon (or not;-), |
I just had a nice idea. Since we are running BTRFS, we can easily create snapshots before each version update (or other package updates). However, not all users report all our updates as an improvement. So, what about creating a boot menu with which we enable users to boot from one of the snapshots created of prior versions? This way, users can always boot from a previous version without reinstalling, and easily update to the next version without reinstalling the latest version again. He just has to boot the last version and update (which again adds another boot menu item). This boot menu can show for about 3 sec. so it doesn't slow down the boot too much.
Something for version 2 i think 😄
The text was updated successfully, but these errors were encountered: