summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-07-29 23:28:54 -0400
committerMichael Prokop <mika@debian.org>2010-08-06 23:02:05 -0400
commite7daaf7fdf80ba63626515ca3e3e3054aaac0417 (patch)
tree225954a4bff3531fe5fd82b1292024ca801afa4d /scripts/functions
parenta4e1a9ea7321799da65a11bb96413d66b7cb07eb (diff)
downloadinitramfs-tools-e7daaf7fdf80ba63626515ca3e3e3054aaac0417.tar.gz
initramfs-tools-e7daaf7fdf80ba63626515ca3e3e3054aaac0417.zip
init: provide validate_init() wrapper to support absolute symlinks.
If /sbin/init is an absolute symlink (e.g. to /bin/systemd) the readlink check doesn't work as $rootmnt is involved. The validate_init() shell function takes care of this fact, as well as when guessing the init binary points to a directory. For example Ubuntu's upstart has its configuration inside /etc/init whereas this is considered a valid run_init_process() binary by the Linux kernel and `test -x' returns true when checking for executables. Therefore be more conservative with providing full backwards compability as well as new added support for absolute symlinks at the same time. Closes: #590744
Diffstat (limited to 'scripts/functions')
0 files changed, 0 insertions, 0 deletions