3 PATH=/bin:/usr/bin:/sbin:/usr/sbin
6 SYS_BLK_DIR=/sys/class/block
8 mount -o nosuid,strictatime,mode=755 -t devtmpfs devtmpfs /dev
9 mount -o nosuid,noexec,nodev -t sysfs sysfs /sys
10 mount -o nosuid,noexec,nodev -t proc proc /proc
12 ROOTFS=`/sbin/blkid -L rootfs`
15 ROOTFS=`/sbin/blkid -t PARTLABEL=rootfs -o device`
18 DATAFS=`/sbin/blkid -L system-data`
21 DATAFS=`/sbin/blkid -t PARTLABEL=system-data -o device`
24 if [ "$ROOTFS" == "" ]
26 echo "Warning : There is no rootfs partition."
28 /usr/bin/mount | grep "$ROOTFS " > /dev/null
32 /usr/bin/mount -o remount,rw $ROOTFS
36 /sbin/resize2fs -f $ROOTFS
40 if [ "$DATAFS" == "" ]
42 echo "Warning : There is no system-data partition."
44 /usr/bin/mount | grep "$DATAFS " > /dev/null
48 /usr/bin/umount -l "DATAFS"
51 /usr/bin/mount $DATAFS $SYSTEM_MNT
54 INIT=/usr/lib/systemd/systemd
56 [ "$INIT" ] && exec "$INIT" "$@"
59 echo "======================================================================"
60 echo "[/sbin/init] WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
61 echo "This Message should be never printed. ($INIT execution failure?)"
62 echo "======================================================================"