diskimage-builder/elements/fedora/install.d/01-rc-local
Steve Baker c6da246b73 Fix for running /etc/rc.local on Fedora
With systemd rc.local lives in /etc/rc.d and is only run
if the rc-local service is enabled.

This change creates a /etc/rc.d/rc.local symlink, and modifies img-functions
prepare_first_boot to tolerate an initially missing /etc/rc.local.

Fixes bug #1179674

Change-Id: I7e6102b62224950c1de5d48205dc4feff60f9389
2013-05-14 11:48:58 +12:00

5 lines
86 B
Bash
Executable File

#!/bin/bash
ln -s /etc/rc.local /etc/rc.d/rc.local
systemctl enable rc-local.service