cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
micki_b12
Observer
Observer
328 Views
Registered: ‎08-25-2019

Petalinux 2018.2 update udev mount.blacklist file

Jump to solution

Hi

I am using Peatlinux 2018.2 and I want to update mount.blacklist file located

root@wnc_16:/etc/udev# ls -l
total 7040
-r--r--r-- 1 root root 7198971 Oct 24 06:58 hwdb.bin
drwxr-xr-x 2 root root 360 Oct 24 06:58 hwdb.d
-rw-r--r-- 1 root root 51 Oct 24 06:50 mount.blacklist
drwxr-xr-x 2 root root 40 Oct 24 06:50 mount.blacklist.d
drwxr-xr-x 2 root root 140 Oct 24 06:58 rules.d
drwxr-xr-x 2 root root 80 Oct 24 06:58 scripts
-rw-r--r-- 1 root root 49 Jun 7 2018 udev.conf

Found this : 

https://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-core/udev/eudev/

 

If I run grep in the project directory 

build/tmp/pkgdata/plnx-zynqmp/runtime/udev-extraconf:17:CONFFILES_udev-extraconf: /etc/udev/mount.blacklist
build/tmp/pkgdata/plnx-zynqmp/runtime/udev-extraconf:18:FILES_INFO: {"/etc/udev/rules.d/localextra.rules": 843, "/etc/udev/scripts/mount.sh": 2469, "/etc/udev/mount.blacklist": 51, "/etc/udev/rules.d/automount.rules": 847, "/etc/udev/rules.d/autonet.rules": 757, "/etc/udev/scripts/network.sh": 1402}

I don't find mount.blacklist file in project directory 

I understood it's PKG_udev-extraconf: udev-extraconf
 

I created a 

project-spec/meta-user/recipes-core/udev/udev-extraconf

With file  udev-extraconf_%.bb and mount.black list 

But it didn't work 

 

 

Any Idea?

 

 

0 Kudos
1 Solution

Accepted Solutions
micki_b12
Observer
Observer
263 Views
Registered: ‎08-25-2019

/project-spec/meta-user/recipes-core/udev$ 

drwxr-xr-x 2 mbalanga mbalanga 4096 Oct 25 11:01 udev-extraconf
-rw-r--r-- 1 mbalanga mbalanga 99 Oct 25 11:10 udev-extraconf_%.bbappenda

And then 

do_install_append() {
sed -i '$s|$|\n/dev/mmcblk0*|' ${D}${sysconfdir}/udev/mount.blacklist
}

/project-spec/meta-user/recipes-core/udev/udev-extraconf$ ls -l

-rw-r--r-- 1 mbalanga mbalanga 66 Oct 25 09:21 mount.blacklist

 

 

And It work

 

View solution in original post

0 Kudos
1 Reply
micki_b12
Observer
Observer
264 Views
Registered: ‎08-25-2019

/project-spec/meta-user/recipes-core/udev$ 

drwxr-xr-x 2 mbalanga mbalanga 4096 Oct 25 11:01 udev-extraconf
-rw-r--r-- 1 mbalanga mbalanga 99 Oct 25 11:10 udev-extraconf_%.bbappenda

And then 

do_install_append() {
sed -i '$s|$|\n/dev/mmcblk0*|' ${D}${sysconfdir}/udev/mount.blacklist
}

/project-spec/meta-user/recipes-core/udev/udev-extraconf$ ls -l

-rw-r--r-- 1 mbalanga mbalanga 66 Oct 25 09:21 mount.blacklist

 

 

And It work

 

View solution in original post

0 Kudos