Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Ratler/systemd-186
systemd: Version bumped to 186 and added POST_INSTALL warnings
- Loading branch information
Showing
3 changed files
with
58 additions
and
32 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,49 @@ | ||
lin -c dbus | ||
# generate the machine id | ||
/usr/bin/systemd-machine-id-setup | ||
|
||
# systemd readyness checks | ||
if [ ! -f /etc/machine-id ]; then | ||
SYSTEMD_ERROR=1 | ||
message "\n${PROBLEM_COLOR}WARNING: ${MESSAGE_COLOR} File ${FILE_COLOR}/etc/machine-id${MESSAGE_COLOR} not found." | ||
message "${MESSAGE_COLOR}To manually create /etc/machine-id run 'systemd-machine-id-setup' or 'dbus-uuidgen --ensure=/etc/machine-id'" | ||
fi | ||
|
||
if [ ! -L /etc/mtab ]; then | ||
SYSTEMD_ERROR=1 | ||
message "\n${PROBLEM_COLOR}WARNING: ${FILE_COLOR}/etc/mtab${MESSAGE_COLOR} is not a symlink." | ||
message "${MESSAGE_COLOR}To manually create a symlink to /proc/self/mounts run 'rm -f /etc/mtab; ln -s /proc/self/mounts /etc/mtab'" | ||
fi | ||
|
||
if [ ! -L /var/run ]; then | ||
SYSTEMD_ERROR=1 | ||
message "\n${PROBLEM_COLOR}WARNING: ${FILE_COLOR}/var/run${MESSAGE_COLOR} is not a symlink." | ||
if mountpoint -q /var/run; then | ||
message "${MESSAGE_COLOR}To manually create a symlink to /run run 'umount /var/run; rm -rf /var/run; ln -s ../run /var/run'" | ||
else | ||
message "${MESSAGE_COLOR}To manually create a symlink to /run run 'rm -rf /var/run; ln -s ../run /var/run'" | ||
fi | ||
fi | ||
|
||
if [ ! -L /var/lock ]; then | ||
SYSTEMD_ERROR=1 | ||
message "\n${PROBLEM_COLOR}WARNING: ${FILE_COLOR}/var/lock${MESSAGE_COLOR} is not a symlink." | ||
if mountpoint -q /var/lock; then | ||
message "${MESSAGE_COLOR}To manually create a symlink to /run/lock run 'umount /var/lock; rm -rf /var/lock; ln -s ../run/lock /var/lock'" | ||
else | ||
message "${MESSAGE_COLOR}To manually create a symlink to /run/lock run 'rm -rf /var/lock; ln -s ../run/lock /var/lock'" | ||
fi | ||
fi | ||
|
||
if egrep -q '^(proc|none|devpts|usbfs|tmpfs)' /etc/fstab; then | ||
SYSTEMD_ERROR=1 | ||
message "\n${PROBLEM_COLOR}WARNING: ${MESSAGE_COLOR}Incompatible systemd mountpoints found in ${FILE_COLOR}/etc/fstab${MESSAGE_COLOR}." | ||
message "${MESSAGE_COLOR}Please comment out or remove all lines except your file system and swap mountpoints from ${FILE_COLOR}/etc/fstab${MESSAGE_COLOR}." | ||
message "${MESSAGE_COLOR}Hint: Lines that begin with proc, none, devpts, usbfs and tmpfs can safely be removed." | ||
fi | ||
|
||
if [ -n "$SYSTEMD_ERROR" ]; then | ||
message "\e[5;31mPress any key to continue..." | ||
read -n 1 | ||
fi | ||
|
||
lin -c dbus |