-
Notifications
You must be signed in to change notification settings - Fork 435
[feature request] Default OS and Timeout #168
Comments
I'm not entirely sure what you mean by "set a default OS to boot (and still keep the feature boot to OS from last time)" - NOOBS already has exactly that functionality https://github.com/raspberrypi/noobs#how-to-change-the-default-language-keyboard-layout-display-mode-or-boot-partition And regarding "set timeout for default OS" - NOOBS does have a timeout already, of 10 seconds :) Do you mean you want to be able to change the timeout, or did you mean something else? |
About setting default OS :
About the timeout : yes, I mean giving the possibility to change the 10s timeout to some user define timeout (like 1s, just enough to go on rescue mode if needed) |
"It still boot to the last selected OS." - isn't that exactly what you asked for in your original request? "keep the feature boot to OS from last time". The activation of rescue mode "press shift..." happens before the NOOBS application itself loads, so is independent of any OS-selection-timeout in NOOBS. You can set the 'timeout' to zero by only installing one OS from within NOOBS ;-) |
I will try to explain again : what I want to suggest is a bit similar to what you have before in grub (grub2, I still don't understand how to configure to boot to last selected ...). It would be great if you have a default_os parameter like this : timeout=-1 : wait for user to choose an OS (wait infinite) The current situation :
|
Thanks for the more detailed explanation, I can see what you're asking for now. Although it should be quite obvious that NOOBS and GRUB are very different things ;-)
One of the problems I can foresee with allowing the user to set a default_partition, might be if a user installs e.g. Pidora and Raspbian (which might put Pidora on partition 5 and Raspbian on partition 7), and then they set the default_partition to 7, and then later on they use recovery mode to install just Raspbian (pushing it down to partition 5, with no partition 7), but the default partition is still set to 7... Just out of interest, what problem is the current behaviour of always-booting-the-last-OS causing? After all, the primary goal of NOOBS is to make life simple for noobs, so we don't want to overcomplicate it too much ;) |
Thanks for the explanation. I know now how it really works (I was just guessing from observation. A bit lazy to read trhough the NOOBS coce :-p ) The features that I suggested would be for experienced linux user. We will still keep the current features (like boot to last selected) because it is great and user friendly. What you guys done is great. You make the RPI an "one-click-button" computer !! So it is good to keep it like that. My philosophy is to keep what is working and friendly (high priority) and add possibility to advanced user to tweak. It is not always possible because it takes time and work. I understand that. That why it is just a suggestion. And for why those features: in my case, I want to deploy the RPi to different places. It will have the main, every day, OS on an USB drive (much faster and reliable than SD card). And another OS on sdcard as a rescue OS (kind of live CD rescue ...). Daily, the RPi will boot to the main OS, with an 0s timeout. Cheers, |
For your specific scenario, I guess you could install the same OS to both the SDcard and to the USB drive, so as far as NOOBS is concerned there's only one OS available (and hence a zero-second timeout). And then you could switch between loading your root filesystem from sd-card or from usb-drive by pressing SHIFT and using NOOBS's built-in config editor to change the root= parameter of cmdline.txt ;-) BTW the build issues you're finding are a good thing - much better to find and fix bugs, than have them lurking around undetected :) |
Haha ! That is exactly what I am doing right now ! (meanwhile successfully build and hack NOOBS)
No worry, happy to help :D |
Cool :-) |
@mhtrinh is this still an issue? |
Because NOOBS lack this feature, I end up using another way to do it. If some day this feature end up in Noobs, then I will probably use it. |
I would very much like the ability to make the default OS sticky, rather than always automatically updating the default OS to the last-selected OS. I like the option suggested here:
The use case is when the user is dual-booting where one installed OS does not require a graphical interface (e.g., raspbian lite, and/or pidora configured with runlevel 3) and one installed OS does require a graphical interface (e.g., OpenELEC, and/or RetroPie). When the non-graphical OS is the main OS and primarily accessed through a serial cable, it gets very annoying to boot back into that after, e.g., connecting to the TV to play a game in RetroPie. Currently, the user would need to boot back into raspbian from the TV to make sure the default is updated before going back to the serial cable method, or otherwise figure out how to get to the correct partition to update the setting manually. Concerning the issue raised about booting into a non-existent partition: I believe that is a rare condition and should be testable programmatically. If the default partition doesn't exit, we can go back to the "last" setting again. |
One way to implement this:
To handle the "partition does not exist problem", in that case we can boot into recovery, since that is always in partition 1. |
default_partition_to_boot=5 would boot partition 5, and auto-update the setting to the last-selected OS (current behavior), and then default_partition_to_boot=-5 would also boot partition 5, but there would be no auto-update of the setting. refs raspberrypi#168
if default_boot_timeout is given in noobs.conf, it will be used to set the timeout before booting the selected OS. refs raspberrypi#168
I have implemented my take on this requirement in PINN. |
On https://sourceforge.net/projects/pinn/files/testing/ I have deleted pinn-212a.zip and replaced it with pinn-212b.zip which works much better.
Comments welcome. I should be able to adapt this to NOOBS as well and create a PR if there is enough interest. |
These features are now released in PINN p2.1.2 |
No plans to add this to NOOBS. |
One other reason for the boot menu time out option is for people who don't have the dexterity to select the OS they want in the 10 time limit. I wouldn't necessarily need the default OS settings, except that he would be running it most often in libreelec, so cutting the number of times he has to select an OS down by half might not be a bad thing |
In NOOBS you have the If you need the adjustable menu timeout, try PINN, which has that plus a lot more options, but is otherwise compatible with NOOBS and will look familiar. |
Thanks @procount , its working like a charm. |
What is working like a charm - forcetrigger or PINN? Forcetrigger will ALWAYS force the recovery menu to be shown regardless of any dates. |
I would like to suggest those feature for NOOBS:
The text was updated successfully, but these errors were encountered: