machine-specific udev packages
Hi,
I only recently noticed that udev packages are machine specific now due to the machine specific mount.blacklist file. It looks like most machines blacklist the same devices, namely:
/dev/mtdblock*/dev/loop*/dev/ram*
Only spitz and slugos differ significantly.
(/dev/hda* on spitz, hd[a-z], sd[a-z] on slugos)
I'd like to add /dev/mtdblock to the default mount.blacklist and remove the specialization for akita, amsdelta, c7x0, h2200, ipaq-pxa270 and tosa.
Is there any good way to avoid spitz and slugos specific udev packages that are only due mount.blacklist? Maybe this could be part of base-files or some other package?
regards
Philipp
Quoted 11 lines · pHilipp Zabel
I only recently noticed that udev packages are machine specific now due to the machine specific mount.blacklist file. It looks like most machines blacklist the same devices, namely:
/dev/mtdblock*/dev/loop*/dev/ram*Only spitz and slugos differ significantly.
(/dev/hda*on spitz, hd[a-z], sd[a-z] on slugos)
Quoted 7 lines
I'd like to add
/dev/mtdblockto the default mount.blacklist and remove the specialization for akita, amsdelta, c7x0, h2200, ipaq-pxa270 and tosa.Is there any good way to avoid spitz and slugos specific udev packages that are only due mount.blacklist? Maybe this could be part of base-files or some other package?
Personally, I'd like to see several things happen. Firstly, if these lists are going to be machine specific, lets move them to something like base-files and make sure the scripts can survive without them. This means udev stops being machine specific. Alternatively, we create a new machine specific package if people don't want the extra file in base-files.
Secondly, I'd prefer to see this change to a whitelist approach. We also need to be more intelligent about automounting eg, not mounting /dev/hda when its partitioned and hda1, hda2 are present etc.
Cheers,
Richard
Quoted 20 lines · Richard Purdie
Quoted 11 lines · pHilipp Zabel
I only recently noticed that udev packages are machine specific now due to the machine specific mount.blacklist file. It looks like most machines blacklist the same devices, namely:
/dev/mtdblock*/dev/loop*/dev/ram*Only spitz and slugos differ significantly.
(/dev/hda*on spitz, hd[a-z], sd[a-z] on slugos)Quoted 7 lines
I'd like to add
/dev/mtdblockto the default mount.blacklist and remove the specialization for akita, amsdelta, c7x0, h2200, ipaq-pxa270 and tosa.Is there any good way to avoid spitz and slugos specific udev packages that are only due mount.blacklist? Maybe this could be part of base-files or some other package?
Quoted 8 lines
Personally, I'd like to see several things happen. Firstly, if these lists are going to be machine specific, lets move them to something like base-files and make sure the scripts can survive without them. This means udev stops being machine specific. Alternatively, we create a new machine specific package if people don't want the extra file in base-files.
Secondly, I'd prefer to see this change to a whitelist approach.
I agree.
It is certainly better to have udev not mount anything dynamically unless a mount.whitelist (provided by machine specific base-files) exists than the other way around.
I'm all for including the whitelist in base-files, are there reasons not to do it? If so, is there perhaps another package already existing that would fit this purpose?
Quoted 3 lines
We also
need to be more intelligent about automounting eg, not mounting/dev/hdawhen its partitioned and hda1, hda2 are present etc.
Definitely. As mount.sh grows in size and functionality, aren't we starting to duplicate pmount?
btw,
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403
regards
Philipp
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
pHilipp Zabel schreef:
Quoted 3 lines
btw,
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403
We'd welcome input from apachache/web savvy people on how to get .sh/.py/.php files to display as text when accessed from http://www.openembedded.org/repo/ or
http://www.openembedded.org/filebrowser.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFB+ZNMkyGM64RGpERAkCKAJ9qWA+UHzHPPkARSmD2+dfzHP5uYgCeJhf8 I2hRsaDqGq9EkSUF/Eh+s7s=
=uAJP
-----END PGP SIGNATURE-----
Quoted 5 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1pHilipp Zabel schreef:
Quoted 7 lines
Quoted 3 lines
btw,
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403We'd welcome input from apachache/web savvy people on how to get .sh/.py/.php files to display as text when accessed from http://www.openembedded.org/repo/ or
http://www.openembedded.org/filebrowser.
I'm not -savvy, but perhaps this could work:
AddType text/plain sh
AddType text/plain py
AddType text/plain php
in repo/.htaccess
cheers
Philipp
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
pHilipp Zabel schreef:
Quoted 13 lines · Koen Kooi
Quoted 11 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1pHilipp Zabel schreef:
Quoted 3 lines
btw,
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403We'd welcome input from apachache/web savvy people on how to get .sh/.py/.php files to display as text when accessed from http://www.openembedded.org/repo/ or
http://www.openembedded.org/filebrowser.
Quoted 7 lines
I'm not -savvy, but perhaps this could work:
AddType text/plain sh
AddType text/plain py
AddType text/plain phpin repo/.htaccess
That doesn't work :(
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFB+6qMkyGM64RGpERAiHQAJ9bR58S3fx6KeZGyONajPOGwbJcUwCgh3E7 WF7PEj4emDPSKwuVbgv9sOo=
=Et5V
-----END PGP SIGNATURE-----
Quoted 16 lines · Koen Kooi
pHilipp Zabel schreef:
Quoted 15 lines · Koen Kooi
Quoted 11 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1pHilipp Zabel schreef:
Quoted 3 lines
btw,
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403We'd welcome input from apachache/web savvy people on how to get .sh/.py/.php files to display as text when accessed from http://www.openembedded.org/repo/ or
http://www.openembedded.org/filebrowser.I'm not -savvy, but perhaps this could work:
Quoted 8 lines
Quoted 5 lines
AddType text/plain sh
AddType text/plain py
AddType text/plain phpin repo/.htaccess
That doesn't work :(
Hmmm, works for me. Perhaps you have a rule set elsewhere that is disallowing access to potentially dangerous files such as sh and py? You should be able to override it for this directory and make them text/plain instead.
Signature · 1 line
Justin Patrin
Am Mittwoch, den 13.09.2006, 12:52 +0200 schrieb pHilipp Zabel:
Quoted 28 lines · Richard Purdie
Quoted 27 lines · pHilipp Zabel
Quoted 11 lines
I only recently noticed that udev packages are machine specific now due to the machine specific mount.blacklist file. It looks like most machines blacklist the same devices, namely:
/dev/mtdblock*/dev/loop*/dev/ram*Only spitz and slugos differ significantly.
(/dev/hda*on spitz, hd[a-z], sd[a-z] on slugos)Quoted 7 lines
I'd like to add
/dev/mtdblockto the default mount.blacklist and remove the specialization for akita, amsdelta, c7x0, h2200, ipaq-pxa270 and tosa.Is there any good way to avoid spitz and slugos specific udev packages that are only due mount.blacklist? Maybe this could be part of base-files or some other package?
Personally, I'd like to see several things happen. Firstly, if these lists are going to be machine specific, lets move them to something like base-files and make sure the scripts can survive without them. This means udev stops being machine specific. Alternatively, we create a new machine specific package if people don't want the extra file in base-files.
Quoted 8 lines
Quoted 1 line
Secondly, I'd prefer to see this change to a whitelist approach.
I agree.
It is certainly better to have udev not mount anything dynamically unless a mount.whitelist (provided by machine specific base-files) exists than the other way around.
I'm all for including the whitelist in base-files, are there reasons not to do it?
Base-files already is concerned with filesystem issues (fstab etc.) and is a required package, so it sounds like an appropriate place to me.
Quoted 2 lines
Definitely. As
mount.shgrows in size and functionality, aren't we starting to duplicate pmount?
Good point.
Quoted 3 lines
btw,
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403
D'oh. no .sh file is getting displayed anyway.
Signature · 3 lines
Regards, Michael 'Mickey' Lauer | FreeLancer | http://www.Vanille-Media.de
Quoted 6 lines · pHilipp Zabel
Quoted 3 lines
We also
need to be more intelligent about automounting eg, not mounting/dev/hdawhen its partitioned and hda1, hda2 are present etc.Definitely. As
mount.shgrows in size and functionality, aren't we starting to duplicate pmount?
Yes. I looked at pmount and its remarkably stupid though and designed for desktops. The problems that come back to mind are:
1. Incompatible with busybox
2. Only works for removable media devices. Note that MMC/SD cards are not removable media devices in the kernel sense. CF cards no longer are either since I had that fixed in mainline. (removable media is where the controller stays present but the media doesn't - a CF/MMC/SD card contains the controller.)
3. Partly related to 1), it doesn't use mount but uses syscalls directly. This means it has its own parsing of fstab implementation and mounted systems don't show in mtab.
I tried to explain 2) to the author/maintainer but they basically didn't want to know. Since pmount relies on the removable flag "not mounting /dev/hda when its partitioned" logic is not present in pmount.
In summary, we might be better off writing something ourselves :-(. At the very least, we'd have to heavily patch it.
Richard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
pHilipp Zabel schreef:
Quoted 2 lines
http://www.openembedded.org/repo/org.openembedded.dev/packages/udev/files/mount.sh
returns a 403
fixed, after some inspection of .htaccess files higher up
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFCEkWMkyGM64RGpERAiuIAJsEKCgy44M8HcJQ5uoSiZsMRRAaQwCeIdfN w4dhG1UiQm+WkxZDAJhTJiQ=
=rTQp
-----END PGP SIGNATURE-----
Hello pHilipp,
Quoted 5 lines · you
Hi,
I only recently noticed that udev packages are machine specific now due to the machine specific mount.blacklist file. It looks like most machines blacklist the same devices, namely:
[]
Thanks for taking care of this, Philipp! I'm glad it already
received favorable feedback. Probably should make sure to ger feedbacj from SlugOS people too.
Quoted 2 lines
regards
Philipp
Signature · 2 lines
Best regards, Paul mailto:[email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Sokolovsky schreef:
Quoted 10 lines
Hello pHilipp,
Quoted 5 lines · you
Hi,
I only recently noticed that udev packages are machine specific now due to the machine specific mount.blacklist file. It looks like most machines blacklist the same devices, namely:
Quoted 5 lines
[]
Thanks for taking care of this, Philipp! I'm glad it already
received favorable feedback. Probably should make sure to ger feedbacj from SlugOS people too.
CC:'ing Øyvind
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFFB/uzMkyGM64RGpERAi7oAKCTPG976VXxj7Zb7gBkTtLb1OfiNwCfSvzZ DGDEpDP99hkzy/oaoaQQYyg=
=LWzG
-----END PGP SIGNATURE-----