Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229620

Re: Select which system to boot while rebooting

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: Select which system to boot while rebooting
Date 2020-12-10 11:10 +0100
Message-ID <Bkr3A-6Fd-13@gated-at.bofh.it> (permalink)
References <BkqKe-6jt-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Jo, 10 dec 20, 10:29:02, PstrfZ wrote:
> On the same machine I need to host three operating systems, all
>  debian-based.  Is it possible to select which system to boot
>  while rebooting? (My intent is then to reboot the selected system
>  by sending the command via SSH)
 
1. Change the default in /boot/grub/grup.cfg[a] before rebooting.

2. As far as I recall grub1 has a 'grub set-default' or similar command 
that could be used for to change the default for the next boot only[b]. 
Maybe this was re-implemented also in grub2?

[a] path and filename is from memory, it's been a while since using 
grub2
[b] useful in combination with a cron script to reboot the system after 
some delay, e.g. if one messed up the network configuration for a remote 
system.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Select which system to boot while rebooting PstrfZ <pastrufazio@gmail.com> - 2020-12-10 10:50 +0100
  Re: Select which system to boot while rebooting Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-10 11:10 +0100
    Re: Select which system to boot while rebooting <tomas@tuxteam.de> - 2020-12-10 11:20 +0100
      Re: Select which system to boot while rebooting Reco <recoverym4n@enotuniq.net> - 2020-12-10 11:50 +0100
        Re: Select which system to boot while rebooting Reco <recoverym4n@enotuniq.net> - 2020-12-10 11:50 +0100
          Re: Select which system to boot while rebooting David Wright <deblis@lionunicorn.co.uk> - 2020-12-18 01:50 +0100
            Re: Select which system to boot while rebooting Reco <recoverym4n@enotuniq.net> - 2020-12-18 07:50 +0100
              Re: Select which system to boot while rebooting David Wright <deblis@lionunicorn.co.uk> - 2020-12-18 18:30 +0100
  Re: Select which system to boot while rebooting didier gaumet <didier.gaumet@gmail.com> - 2020-12-10 12:30 +0100
  Re: Select which system to boot while rebooting Joe <joe@jretrading.com> - 2020-12-10 13:30 +0100
  Re: Select which system to boot while rebooting Anssi Saari <as@sci.fi> - 2020-12-10 15:50 +0100

csiph-web