pmaports/postmarketos-mkinitfs/init.sh.in
Oliver Smith f70bd6b688 Remove busybox aport: telnetd is enabled in upstream now
Pull request, that got merged:
https://github.com/alpinelinux/aports/pull/1092

Please note, that you can't directly upgrade from postmarketOS "busybox-extras" to the upstreamed version.
To upgrade properly, do the following:
* delete your self-compiled busybox* packages:
	`sudo rm ~/.local/var/pmbootstrap/packages/armhf/busybox*`
* zap all your armhf chroots with:
	`./pmbootstrap.py zap`
2017-06-07 23:14:24 +02:00

38 lines
761 B
Bash

#!/bin/sh
. ./init_functions.sh
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
/bin/busybox --install -s
/bin/busybox-extras --install -s
# kernel modules
modprobe -a @MODULES@
# mdev
mount -t proc -o nodev,noexec,nosuid proc /proc
mount -t sysfs -o nodev,noexec,nosuid sysfs /sys
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
# subpartitions
mount_subpartitions
# hooks
for hook in /etc/postmarketos-mkinitfs/hooks/*.sh; do
[ -e "$hook" ] || continue
sh "$hook"
done
show_splash /splash1.ppm.gz
# unlock root partition
unlock_root_partition
# switch root
show_splash /splash2.ppm.gz
killall telnetd mdev 2&> /dev/null
mount -w -t ext4 /dev/mapper/root /sysroot
umount /proc
umount /sys
umount /dev/pts
umount /dev
exec switch_root /sysroot /sbin/init