1
0
Fork 0
mirror of https://github.com/pygos/init.git synced 2024-12-22 07:10:49 +01:00

Move pygos specific configuration to pygos build repo

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-04-19 07:35:41 +02:00
parent 9dc2cc5fa4
commit 32113521eb
9 changed files with 1 additions and 79 deletions

2
.gitignore vendored
View file

@ -25,8 +25,6 @@ services/sigterm
services/devfs
services/procfs
services/sysfs
services/tmpfsvar
services/rootusr
scripts/devfs.sh

View file

@ -28,11 +28,6 @@ install-data-local:
$(LN_S) $(TEMPLATEDIR)/sysfs $(DESTDIR)$(SVCDIR)/sysfs
$(LN_S) $(TEMPLATEDIR)/devfs $(DESTDIR)$(SVCDIR)/devfs
$(LN_S) $(TEMPLATEDIR)/tmpfs $(DESTDIR)$(SVCDIR)/tmpfs
if PYGOSCFG
$(LN_S) $(TEMPLATEDIR)/tmpfsrun $(DESTDIR)$(SVCDIR)/tmpfsrun
$(LN_S) $(TEMPLATEDIR)/tmpfsvar $(DESTDIR)$(SVCDIR)/tmpfsvar
$(LN_S) $(TEMPLATEDIR)/rootusr $(DESTDIR)$(SVCDIR)/rootusr
endif
$(LN_S) $(TEMPLATEDIR)/vfs $(DESTDIR)$(SVCDIR)/vfs
$(LN_S) $(TEMPLATEDIR)/shutdown $(DESTDIR)$(SVCDIR)/shutdown
$(LN_S) $(TEMPLATEDIR)/reboot $(DESTDIR)$(SVCDIR)/reboot

View file

@ -13,17 +13,6 @@ AC_PROG_RANLIB
AC_PROG_MKDIR_P
AC_PROG_LN_S
AC_ARG_WITH([pygos],
[AS_HELP_STRING([--without-pygos],
[Disable Pygos specific default configuration])],
[case "${withval}" in
yes) AM_CONDITIONAL([PYGOSCFG], [true]) ;;
no) AM_CONDITIONAL([PYGOSCFG], [false]) ;;
*) AC_MSG_ERROR([bad value ${withval} for --without-pygos]) ;;
esac],
[AM_CONDITIONAL([PYGOSCFG], [true])])
UL_WARN_ADD([-Wall])
UL_WARN_ADD([-Wextra])
UL_WARN_ADD([-Wunused])
@ -63,8 +52,6 @@ AC_CONFIG_FILES([services/sigterm])
AC_CONFIG_FILES([services/sysfs])
AC_CONFIG_FILES([services/devfs])
AC_CONFIG_FILES([services/procfs])
AC_CONFIG_FILES([services/tmpfsvar])
AC_CONFIG_FILES([services/rootusr])
AC_CONFIG_FILES([scripts/devfs.sh])
AC_CONFIG_FILES([etc/initd.env])

View file

@ -1,7 +1,3 @@
helper_SCRIPTS += scripts/devfs.sh scripts/trymount.sh
if PYGOSCFG
helper_SCRIPTS += scripts/overlay.sh
endif
EXTRA_DIST += scripts/trymount.sh scripts/overlay.sh
EXTRA_DIST += scripts/trymount.sh

View file

@ -1,21 +0,0 @@
#!/bin/sh
lower=/cfg/preserve/${1}
upper=/cfg/overlay/${1}
work=/cfg/overlay/${1}_work
target=${2}
if [ ! -d "$target" ]; then
exit
fi
if [ -d "$lower" ]; then
if [ -d "$upper" ]; then
mkdir -p "$work"
mount -t overlay overlay \
-olowerdir=${lower},upperdir=${upper},workdir=${work} \
${target}
else
mount --bind "$lower" "$target"
fi
fi

View file

@ -6,11 +6,6 @@ init_DATA += services/sigterm services/sync services/devfs
init_DATA += services/sysfs services/procfs services/tmpfs
init_DATA += services/vfs
if PYGOSCFG
init_DATA += services/rootusr services/tmpfsrun services/tmpfsvar
endif
EXTRA_DIST += services/sysinit services/vfs services/agetty services/hostname
EXTRA_DIST += services/hwclock services/loopback services/reboot
EXTRA_DIST += services/shutdown services/sync services/sysctl services/tmpfs
EXTRA_DIST += services/tmpfsrun

View file

@ -1,5 +0,0 @@
description "mount /root"
type wait
target boot
before vfs
exec "@SCRIPTDIR@/overlay.sh" root /root

View file

@ -1,11 +0,0 @@
description "mount /run"
type wait
target boot
before vfs
after tmpfsvar
exec {
mount -t tmpfs none /run
mkdir /run/lock -m 0755
ln -s /run /var/run
ln -s /run/lock /var/lock
}

View file

@ -1,12 +0,0 @@
description "mount /var"
type wait
target boot
before vfs
exec {
mount -t tmpfs none /var
mkdir /var/log -m 0755
mkdir /var/spool -m 0755
mkdir /var/lib -m 0755
mkdir /var/tmp -m 0755
"@SCRIPTDIR@/overlay.sh" var_lib /var/lib
}