mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
This adds support for bringing up the system with an alternate fstab at boot. E.g., when using a primary/secondary setup for boot partitions. By default /etc/fstab is read, like before, this can now be changed using configure --with-fstab=/path/to/fstab.primary, which sets the default that can be overridden using finit.fstab=/etc/fstab.secondary If mounting, or fsck, fails in any way, Finit calls its own bundled sulogin, or the system sulogin(8), to let the user handle the issue. If there is no sulogin available, Finit will try to start up in its rescue.conf boot mode. Please note, in either of these rescue modes, use `reboot -f` to get the system to reboot. Finit is on pause in the background in rescue mode and cannot be relied on (since there may not be any writable filesystems available.). Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
34 lines
961 B
Makefile
34 lines
961 B
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
SUBDIRS = man plugins src test
|
|
doc_DATA = README.md LICENSE contrib/finit.conf
|
|
EXTRA_DIST = README.md LICENSE ChangeLog.md contrib/finit.conf
|
|
|
|
if CONTRIB
|
|
SUBDIRS += contrib
|
|
endif
|
|
if DOC
|
|
SUBDIRS += doc
|
|
endif
|
|
|
|
# Compat hook
|
|
install-dev:
|
|
@make -C src install-pkgincludeHEADERS
|
|
|
|
# Target to run when building a release
|
|
release: distcheck
|
|
@for file in $(DIST_ARCHIVES); do \
|
|
md5sum $$file > ../$$file.md5; \
|
|
sha256sum $$file > ../$$file.sha256; \
|
|
done
|
|
@mv $(DIST_ARCHIVES) ../
|
|
@echo
|
|
@echo "Resulting release files:"
|
|
@echo "================================================================="
|
|
@for file in $(DIST_ARCHIVES); do \
|
|
printf "$$file \tDistribution tarball\n"; \
|
|
printf "$$file.md5\t"; cat ../$$file.md5 | cut -f1 -d' '; \
|
|
printf "$$file.sha256\t"; cat ../$$file.sha256 | cut -f1 -d' '; \
|
|
done
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --with-fstab=/etc/fstab
|