1 |
On Saturday 2 February 2008, Stroller wrote: |
2 |
|
3 |
> One answer to this is to change the "default" entry in /boot/grub/ |
4 |
> grub.conf |
5 |
> |
6 |
> If you don't want to do this manually using $editor each time you |
7 |
> want to start Windows then you could surely write a script which |
8 |
> would do so. In order to change /boot/grub/grub.conf from Windows you |
9 |
> would need to install an ext3-write driver for 'doze or format your / |
10 |
> boot partition FAT32. |
11 |
> |
12 |
> Surely one could easily write a script which would change the |
13 |
> "default" entry in /boot/grub/grub.conf. In order to change it back |
14 |
> one would probably need to have it also write a /boot/grub/ |
15 |
> my.next.boot.txt file, too, and have start-up scripts under each o/s |
16 |
> to recognise that & once again edit /boot/grub/grub.conf. I do not |
17 |
> think such a facility is built-in to grub. |
18 |
|
19 |
There is the "savedefault" command, which can be used to boot an OS only |
20 |
once while keeping the original OS as default, thus booting the original |
21 |
OS the next time. It's explained in the grub info file. |
22 |
So, I suppose the OP could write a wrapper script to /sbin/shutdown which |
23 |
does a grub-set-default to boot windows once. |
24 |
-- |
25 |
gentoo-user@l.g.o mailing list |