summaryrefslogtreecommitdiff
path: root/recipes-core/udev/files/mount.sh
AgeCommit message (Collapse)Author
2021-03-04udev: mount.sh: fix cmdline parsingMax Krummenacher
On cmdlines with "root=" not at first position the current sed script fails to only provide the root partitions PARTUUID. Fix that. Fixes c8651fe ("udev: mount.sh: create a symlink to the partition with the bootfiles") Additionally add a word boundary \b before root and simplify sed script. This prevents nfsroot, extroot matching. Related-to: ELB-3337 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2021-03-03udev: mount.sh: create a symlink to the partition with the bootfilesMax Krummenacher
Add to the mount.sh script code which creates a symlink to partition with the bootfiles if that can be guessed from the rootfs partition. Scan the /proc/cmdline for the rootfs partition. If this is the second partition of a block device and a first partition exists it creates the symlink /dev/boot-part. /etc/fstab consumes the symlink to mount that at /boot. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2015-10-29udev-extraconf: revert to mountpoints in /mediaMax Krummenacher
oe-core moved the mountpoint used to /run/media/<drive>. In our setup we don't see issues with /media being read only when udev starts mounting. In our environment with graphical desktop udisks will later take over the automount job and udisks currently still uses /media, so keep this consistent between mounting at boottime and mounting at runtime. Refer to openembedded-core commits: acfe3014d41de5e87cdbc58d0396349c6b9c3ffd 62ae16c40252f39ba28e072218d67f47b26b3535