Created
July 18, 2016 21:10
-
-
Save dm0-/e7ac2f3b2d0c84439625ac8834cf374d to your computer and use it in GitHub Desktop.
Sample alternate Fedora container service (incomplete, X input fails)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Start the local Fedora installation in a container | |
[email protected] [email protected] \ | |
boot.mount mnt-fedora.mount opt.mount | |
[email protected] [email protected] | |
Requires=mnt-fedora.mount | |
Wants=boot.mount opt.mount | |
[Service] | |
Delegate=yes | |
DevicePolicy=auto | |
KillMode=mixed | |
Slice=machine.slice | |
Type=notify | |
ExecStart=/usr/bin/systemd-nspawn \ | |
--capability=all \ | |
--directory=/mnt/fedora \ | |
--keep-unit \ | |
--link-journal=try-guest \ | |
--machine=fedora \ | |
--network-veth \ | |
--register=yes \ | |
--settings=override \ | |
--bind=/opt \ | |
--bind-ro=/boot:/boot/efi \ | |
--bind-ro=/etc/resolv.conf:/run/NetworkManager/resolv.conf \ | |
--bind-ro=/dev/null:/etc/fstab \ | |
--bind-ro=/lib/firmware \ | |
--bind-ro=/lib/modules \ | |
--bind=/etc/systemd/system/fedora-container.target:/usr/lib/systemd/system/getty.target \ | |
--bind=/etc/systemd/system/fedora-container.target.wants:/etc/systemd/system/getty.target.wants \ | |
--bind=/etc/systemd/system/fedora-container.target.wants/xdm.service:/usr/lib/systemd/system/xdm.service \ | |
--boot 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment