read_only: create folders in build time
These folders /mnt/linux, /mnt/update and /mnt/data are created by the automount_block.sh script. In a read only system, these folders are not created raising some errors. Creating these folders solves the issue. Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
parent
afc61dfb83
commit
b8d46f0120
|
|
@ -14,9 +14,9 @@
|
|||
#
|
||||
|
||||
# Digi-mounted partitions: linux, update
|
||||
SUBSYSTEM=="block", ENV{ID_PART_ENTRY_NAME}=="linux*|update*", ACTION=="add", RUN+="/etc/udev/scripts/mount_digiparts.sh", GOTO="automount_rules_end"
|
||||
SUBSYSTEM=="mtd", ATTRS{name}=="linux*|update*", ACTION=="add", RUN+="/etc/udev/scripts/mount_digiparts.sh", GOTO="automount_rules_end"
|
||||
SUBSYSTEM=="ubi", ATTRS{name}=="linux*|update*", ACTION=="add", RUN+="/etc/udev/scripts/mount_digiparts.sh", GOTO="automount_rules_end"
|
||||
SUBSYSTEM=="block", ENV{ID_PART_ENTRY_NAME}=="linux*|update*|data*", ACTION=="add", RUN+="/etc/udev/scripts/mount_digiparts.sh", GOTO="automount_rules_end"
|
||||
SUBSYSTEM=="mtd", ATTRS{name}=="linux*|update*|data*", ACTION=="add", RUN+="/etc/udev/scripts/mount_digiparts.sh", GOTO="automount_rules_end"
|
||||
SUBSYSTEM=="ubi", ATTRS{name}=="linux*|update*|data*", ACTION=="add", RUN+="/etc/udev/scripts/mount_digiparts.sh", GOTO="automount_rules_end"
|
||||
|
||||
# Avoid mounting recovery partition
|
||||
SUBSYSTEM=="block", ENV{ID_PART_ENTRY_NAME}=="recovery*", ACTION=="add", GOTO="automount_rules_end"
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@ SRC_URI += " \
|
|||
"
|
||||
|
||||
do_install_append() {
|
||||
|
||||
install -d ${D}/mnt
|
||||
install -d ${D}/mnt/linux
|
||||
install -d ${D}/mnt/update
|
||||
install -d ${D}/mnt/data
|
||||
|
||||
install -m 0755 ${WORKDIR}/mount_digiparts.sh ${D}${sysconfdir}/udev/scripts/
|
||||
sed -i -e 's|@base_sbindir@|${base_sbindir}|g' ${D}${sysconfdir}/udev/scripts/mount_digiparts.sh
|
||||
sed -i -e 's|@systemd_unitdir@|${systemd_unitdir}|g' ${D}${sysconfdir}/udev/scripts/mount_digiparts.sh
|
||||
|
|
@ -35,6 +41,7 @@ do_install_append() {
|
|||
}
|
||||
|
||||
FILES_${PN}_append = " ${sysconfdir}/modprobe.d"
|
||||
FILES_${PN}_append += " /mnt"
|
||||
|
||||
# BT_TTY is machine specific (defined in machine config file)
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue