diff --git a/README.md b/README.md index 5588cf8..0b7eabb 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,9 @@ Install Xorg open-source X Window System. ##### `ENABLE_WM`="" Install a user defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi23-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`. +##### `ENABLE_SYSVINIT`=false +Support for halt,init,poweroff,reboot,runlevel,shutdown,telinit commands + --- #### Advanced system features: diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index d8d008a..4388dd0 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -176,6 +176,7 @@ ENABLE_USER=${ENABLE_USER:=true} USER_NAME=${USER_NAME:="pi"} ENABLE_ROOT=${ENABLE_ROOT:=false} ENABLE_QEMU=${ENABLE_QEMU:=false} +ENABLE_SYSVINIT=${ENABLE_SYSVINIT:=false} # SSH settings SSH_ENABLE_ROOT=${SSH_ENABLE_ROOT:=false} @@ -244,6 +245,9 @@ CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""} APT_INCLUDES=${APT_INCLUDES:=""} APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" +#Packages to exclude from chroot build environment +APT_EXCLUDES=${APT_EXCLUDES:=""} + # Packages required for bootstrapping REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo" MISSING_PACKAGES="" @@ -253,6 +257,11 @@ COMPILER_PACKAGES="" set +x +#If init and systemd-sysv are wanted e.g. halt/reboot/shutdown scripts +if [ "$ENABLE_SYSVINIT" = false ] ; then +APT_EXCLUDES="${APT_EXCLUDES},init,systemd-sysv" +fi + # Set Raspberry Pi model specific configuration if [ "$RPI_MODEL" = 0 ] ; then DTB_FILE=${RPI0_DTB_FILE}