meta-rockchip/recipes-core/initrdscripts/files/init-boot-petitboot.sh
Romain Perier 127d1c1743 initrdscripts: Create /var/volatile subdirectories from init-boot-petitboot.sh
In fido, "base-files" now creates symlinks /var/log and /var/tmp which
are redirected to /var/volatile/log and /var/volatile/tmp. These
subdirectories are created by init managers like systemd or sysvinit, so
petitboot initramfs needs to create them, as well. Otherwise pb-discover logs
everything to the standard output as its log directory does not exist.
2015-06-20 13:02:43 +00:00

19 lines
453 B
Bash

#!/bin/sh
# Copyright (C) 2015 Romain Perier <romain.perier@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)
PATH=/sbin:/bin:/usr/sbin:/usr/bin
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs dev /dev
mkdir /var/volatile/log /var/volatile/tmp
/lib/udev/udevd --daemon
pb-discover --verbose -l /var/log/pb-discover.log &
udevadm trigger --action=add
udevadm settle
clear
export TERM=screen
petitboot-nc