[Rpm-maint] Re: minor number changes
Peter Bowen
pzb at novell.com
Tue Jun 17 10:56:45 UTC 2008
anees,
You can also specify device files in the %files section by prepending %
dev(type, major, minor) to the device name. This will ensure that the
file is properly tracked and removed when the package is removed.
Thanks.
Peter
On Tue, 2008-06-17 at 16:14 +0530, aneeskA wrote:
> I found out a solution for the problem. thought i would share with you
> all. the problem was caused due to rpm's inability to count beyond
> 255. to get around the problem i inserted MAKEDEV for those devices in
> the RPMs 'post' section
>
> /dev/MAKEDEV -c config_dir/ -d target_directory -a device_name
>
> where
>
> a configuration file should be prsent in the "config_dir" which should
> contain the following details
>
> [b|c] mode owner group major minor inc count fmt [base]
>
> for more details refer linux man pages
>
> regards
> -- anees
>
> On Mon, Jun 16, 2008 at 10:25 PM, aneeskA <aneeska2k5 at gmail.com>
> wrote:
> Hi all,
>
> when i tried to package device files using RPM (RPM version
> 4.4.2) its minor number changed. Any idea why this is
> happening ? Also is there any fix for this problem ?
>
> thanx and regards
> -- anees
>
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> https://lists.rpm.org/mailman/listinfo/rpm-maint
More information about the Rpm-maint
mailing list