mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 15:49:32 +02:00
initrdscripts: fix for /run/media
mount.sh in udev-extraconf was modified to use /run/media instead of /media. Unfortunately, our scripts in initrdscripts have some dependency on the auto-mounting mechanism proviced by udev-extraconf. So these scripts should also be fixed to use /run/media instead /media, otherwise, our live image cannot work correctly. (From OE-Core rev: be0327b6a900be5434b6b1f08277faf2f65d5da8) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -151,7 +151,7 @@ mkdir -p /boot
|
||||
|
||||
# Handling of the target root partition
|
||||
mount $rootfs /tgt_root
|
||||
mount -o rw,loop,noatime,nodiratime /media/$1/$2 /src_root
|
||||
mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root
|
||||
echo "Copying rootfs files..."
|
||||
cp -a /src_root/* /tgt_root
|
||||
if [ -d /tgt_root/etc/ ] ; then
|
||||
@@ -194,7 +194,7 @@ if [ ! -f /boot/grub/grub.cfg ] ; then
|
||||
echo "kernel /vmlinuz root=$rootfs rw $3 $4 quiet" >> /boot/grub/menu.lst
|
||||
fi
|
||||
|
||||
cp /media/$1/vmlinuz /boot/
|
||||
cp /run/media/$1/vmlinuz /boot/
|
||||
|
||||
umount /boot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user