Joined: 06 Jul 2006
|Posted: Sat Sep 19, 2020 10:29 am Post subject: selecting a 'configuration' via Grub and systemd
|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:
Currently, the PC works in the second of these two ways.
- 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
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.