FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-20-2012, 07:54 AM
Martin Gracik
 
Default Add ntfs-3g to initrd (#804302)

---
share/runtime-install.tmpl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/runtime-install.tmpl b/share/runtime-install.tmpl
index 1776fd7..e4c6b17 100644
--- a/share/runtime-install.tmpl
+++ b/share/runtime-install.tmpl
@@ -58,7 +58,7 @@ installpkg gnome-keyring
installpkg python-imaging

## filesystem tools
-installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfsprogs
+installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfs-3g ntfsprogs
installpkg python-volume_key volume_key

## SELinux support
--
1.7.5.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-20-2012, 04:57 PM
John Reiser
 
Default Add ntfs-3g to initrd (#804302)

> +++ b/share/runtime-install.tmpl

> -installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfsprogs
> +installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfs-3g ntfsprogs

Explicitly installing package ntfs-3g does fix bz#804302,
but closer inspection raises more questions.

The removals say:
-----$ grep ntfs-3g /usr/share/lorax/runtime-cleanup.tmpl
removefrom ntfs-3g --allbut /usr/sbin/mount.ntfs* /${libdir}/*
-----
and after applying the patch and running pungi, then the logfile indicates:
-----$ grep ntfs-3g work/x86_64/log/pylorax.log
template line 23: installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils ntfs-3g ntfsprogs
2:ntfs-3g-2012.1.15-1.fc17.x86_64 installed successfully
template line 786: removefrom ntfs-3g --allbut /usr/sbin/mount.ntfs* /lib64/*
removefrom ntfs-3g /lib64/*: no files matched!
ntfs-3g --allbut /usr/sbin/mount.ntfs* /lib64/*: removed 22/25 files, 1074kb/1454kb
-----

So, before "ntfs-3g" is added to the 'installpkg' line, why was there
no Error for "removefrom ntfs-3g ..."? Explicitly naming a [then] non-existing
package ntfs-3g should be an Error, not just a note in pylorax.log.
That would have caught the original problem of initrd omitting libntfs-3g.so.*.

Also, the log says "removefrom ntfs-3g /lib64/*: no files matched!"
but /usr/lib64/libntfs-3g.so.83* definitely is present [see below].
This confuses me.


Another problem: the package ntfs-3g does have some files that match mount.ntfs*:
-----$ rpm -ql ntfs-3g | grep mount.ntfs
/usr/sbin/mount.ntfs
/usr/sbin/mount.ntfs-3g
/usr/sbin/mount.ntfs-fuse
/usr/share/man/man8/mount.ntfs-3g.8.gz
-----

However, the initrd does not contain them:
-----$ xz -d < x86_64/os/isolinux/initrd.img | cpio --list | grep ntfs
run/initramfs/usr/sbin/fsck.ntfs
run/initramfs/usr/lib64/libntfs-3g.so.83
run/initramfs/usr/lib64/libntfs-3g.so.83.0.0
run/initramfs/usr/bin/ntfsck
-----
So why does the initrd.img not contain /usr/sbin/mount.ntfs* ?

--

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-21-2012, 07:05 AM
Martin Gracik
 
Default Add ntfs-3g to initrd (#804302)

----- Original Message -----
> > +++ b/share/runtime-install.tmpl
>
> > -installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils
> > ntfsprogs
> > +installpkg btrfs-progs jfsutils xfsprogs reiserfs-utils gfs2-utils
> > ntfs-3g ntfsprogs
>
> Explicitly installing package ntfs-3g does fix bz#804302,
> but closer inspection raises more questions.
>
> The removals say:
> -----$ grep ntfs-3g /usr/share/lorax/runtime-cleanup.tmpl
> removefrom ntfs-3g --allbut /usr/sbin/mount.ntfs* /${libdir}/*
> -----
> and after applying the patch and running pungi, then the logfile
> indicates:
> -----$ grep ntfs-3g work/x86_64/log/pylorax.log
> template line 23: installpkg btrfs-progs jfsutils xfsprogs
> reiserfs-utils gfs2-utils ntfs-3g ntfsprogs
> 2:ntfs-3g-2012.1.15-1.fc17.x86_64 installed successfully
> template line 786: removefrom ntfs-3g --allbut /usr/sbin/mount.ntfs*
> /lib64/*
> removefrom ntfs-3g /lib64/*: no files matched!
> ntfs-3g --allbut /usr/sbin/mount.ntfs* /lib64/*: removed 22/25 files,
> 1074kb/1454kb
> -----
>
> So, before "ntfs-3g" is added to the 'installpkg' line, why was there
> no Error for "removefrom ntfs-3g ..."? Explicitly naming a [then]
> non-existing
> package ntfs-3g should be an Error, not just a note in pylorax.log.
> That would have caught the original problem of initrd omitting
> libntfs-3g.so.*.

It is not an error when we specify something in the template and the package is not installed. It is just a warning so the user/maintainer can go back and check the template if anything changed between releases, but it does not stop the compose. The packages and their dependencies change all the time. If this was an error the composes for every release would take a lot more work.

>
> Also, the log says "removefrom ntfs-3g /lib64/*: no files matched!"
> but /usr/lib64/libntfs-3g.so.83* definitely is present [see below].
> This confuses me.

The difference here is /usr/ .

>
>
> Another problem: the package ntfs-3g does have some files that match
> mount.ntfs*:
> -----$ rpm -ql ntfs-3g | grep mount.ntfs
> /usr/sbin/mount.ntfs
> /usr/sbin/mount.ntfs-3g
> /usr/sbin/mount.ntfs-fuse
> /usr/share/man/man8/mount.ntfs-3g.8.gz
> -----
>
> However, the initrd does not contain them:
> -----$ xz -d < x86_64/os/isolinux/initrd.img | cpio --list |
> grep ntfs
> run/initramfs/usr/sbin/fsck.ntfs
> run/initramfs/usr/lib64/libntfs-3g.so.83
> run/initramfs/usr/lib64/libntfs-3g.so.83.0.0
> run/initramfs/usr/bin/ntfsck
> -----
> So why does the initrd.img not contain /usr/sbin/mount.ntfs* ?

This here looks like a bug.

>
> --
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-21-2012, 01:53 PM
Chris Lumens
 
Default Add ntfs-3g to initrd (#804302)

> > However, the initrd does not contain them:
> > -----$ xz -d < x86_64/os/isolinux/initrd.img | cpio --list |
> > grep ntfs
> > run/initramfs/usr/sbin/fsck.ntfs
> > run/initramfs/usr/lib64/libntfs-3g.so.83
> > run/initramfs/usr/lib64/libntfs-3g.so.83.0.0
> > run/initramfs/usr/bin/ntfsck
> > -----
> > So why does the initrd.img not contain /usr/sbin/mount.ntfs* ?
>
> This here looks like a bug.

Hm, didn't we at one point discover a bug with --allbut only working
with one of its arguments?

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:14 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org