Jelajahi Sumber

system: add catatonit as init system

Like the existing tini, catatonit can be used as minimal init to be
used as PID-1.

Add it to the list of init systems, like was done for tini in
24cac9c4e6a3 (system: add tini as init system) and tinyinit in
c1daa35cd950 (package/tinyinit: new package).

Unlike the "main" init systems, there is no historical preference for
those minimalist init systems, so just keep them alphabetically
ordered.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Yann E. MORIN 5 bulan lalu
induk
melakukan
6dc177bee8
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 10 0
      system/Config.in

+ 10 - 0
system/Config.in

@@ -149,6 +149,16 @@ comment "systemd highly recommends Linux >= 4.15"
 
 comment "Special purpose (read help)"
 
+config BR2_INIT_CATATONIT
+	bool "catatonit"
+	select BR2_PACKAGE_CATATONIT
+	select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
+	help
+	  A container init that is so simple it's effectively
+	  brain-dead.
+
+	  https://github.com/openSUSE/catatonit
+
 config BR2_INIT_TINI
 	bool "tini"
 	depends on BR2_USE_MMU  # tini