initramfs-live-install: adapt to new mountpoint in /run

Since new poky/base components, automount mounts devices in /run/media,
not /media anymore.
This commit is contained in:
Pau Espin 2018-04-04 20:09:10 +02:00
parent e626b7950b
commit ea49b321ac
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ mkdir /tgt_root
mkdir -p /boot
echo "Copying rootfs files..."
dd if=/media/$dev_name/$image_name of=$rootfs bs=1024
dd if=/run/media/$dev_name/$image_name of=$rootfs bs=1024
# Handling of the target root partition
mount $rootfs /tgt_root
@ -218,7 +218,7 @@ echo "Re-mounting the root and trying to apply backup."
mount $rootfs /tgt_root
echo "Finding backupfiles"
backupfile=`find /media/$dev_name/ -name "sysmocom-backup*.tar" | head -n1`
backupfile=`find /run/media/$dev_name/ -name "sysmocom-backup*.tar" | head -n1`
if [ -n "$backupfile" ]; then
if [ ! -r "$backupfile" ]; then
echo "configurations-file $backupfile it is not readable"

View File

@ -1,6 +1,6 @@
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
PRINC = "2"
PRINC = "3"
RDEPENDS_${PN} += "e2fsprogs-e2fsck"