Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
selecting a 'configuration' via Grub and systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 839
Location: Queensland

PostPosted: Sat Sep 19, 2020 10:29 am    Post subject: selecting a 'configuration' via Grub and systemd Reply with quote

Hello, I have a small PC that I want to use in one of two ways, which I want to be able to select at boot-time:
  • a stand-alone (no NFS mounts) PC with a fixed IP of say 192.168.2.254.
  • a PC with various NFS mounts in /etc/fstab and picking up an IP address via DHCP
Currently, the PC works in the second of these two ways.
The reason for wanting the first way is so that the PC can serve as a display unit for various 'lights out' board management systems such as HP iLO.

I know that with systemd you can specify a systemd.unit= clause in the kernel boot arguments. I can kind of get how that would work but can you point me to any 'prior art' of how you would use this to achieve what I want? Something like systemd.unit=standalone.service or systemd.unit=connected.service.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum