Replace systemd with sysvinit
This commit is contained in:
parent
f0c9ae2b24
commit
45cd33fd58
2 changed files with 11 additions and 3 deletions
|
@ -86,7 +86,6 @@ TODO
|
|||
* [ ] Tor pluggable transports
|
||||
* [ ] Use Debian armhf instead of Raspbian
|
||||
* [ ] Upgrade from Debian 8 Jessie to Debian 9 Stretch
|
||||
* [ ] Use sysvinit instead of systemd
|
||||
* [ ] Remove dbus
|
||||
* [x] Use sysvinit instead of systemd
|
||||
* [ ] Use custom kernel
|
||||
* [ ] Build own distribution from scratch
|
||||
|
|
11
build.sh
11
build.sh
|
@ -71,7 +71,7 @@ capsh --drop=cap_setfcap -- -c "$BOOTSTRAP_CMD \
|
|||
--components=main,contrib,non-free \
|
||||
--arch armhf \
|
||||
--keyring $KEYS_DIR/raspbian-archive-keyring.gpg \
|
||||
--include=ca-certificates \
|
||||
--force-check-gpg \
|
||||
jessie \
|
||||
$ROOTFS_DIR \
|
||||
http://mirrordirector.raspbian.org/raspbian/" || rmdir "$ROOTFS_DIR/debootstrap/"
|
||||
|
@ -133,6 +133,15 @@ apt-get dist-upgrade -y
|
|||
apt-get autoremove -y --purge
|
||||
EOF
|
||||
|
||||
##
|
||||
# Replace systemd with sysvinit.
|
||||
#
|
||||
on_chroot << EOF
|
||||
apt-get install -y sysvinit-core
|
||||
apt-get purge -y systemd systemd-sysv
|
||||
apt-get autoremove -u --purge
|
||||
EOF
|
||||
|
||||
##
|
||||
# Install kernel and bootloader.
|
||||
#
|
||||
|
|
Reference in a new issue