mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-19 12:49:03 +02:00

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.
19 lines
453 B
Bash
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
|