| Summary: | Medias not added with wired connection Live ISOs | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | claire robinson <eeeemail> |
| Component: | Release (media or process) | Assignee: | Thomas Backlund <tmb> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | 0mojtabaheshmati, davidwhodgins, mageia, sysadmin-bugs, thierry.vignaud, tmb |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| See Also: | https://bugs.mageia.org/show_bug.cgi?id=11582 | ||
| Whiteboard: | 4beta1 | ||
| Source RPM: | CVE: | ||
| Status comment: | |||
| Attachments: | journal.txt | ||
|
Description
claire robinson
2013-11-06 15:33:02 CET
claire robinson
2013-11-06 15:33:18 CET
Whiteboard:
(none) =>
4beta1 Created attachment 4489 [details]
journal.txt
I'll check 64bit iso next. Nov 06 14:18:38 localhost pkexec[1707]: root: The value for the SHELL variable was not found the /etc/shells file [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/drakrpm-addmedia --distrib --mirrorlist $MIRRORLIST --silent-success] Nov 06 14:18:38 localhost finish-install[1468]: ignoring ask_authentication could be related to something else (I have not read all recent bugs) CC:
(none) =>
mageia Same with 64bit Gnome LiveDVD. Kde 32bit did add medias. I'll check the other live ISOs too. Might be another gnome only issue.
claire robinson
2013-11-06 16:15:37 CET
Summary:
Medias not added with wired connection 32bit Gnome LiveDVD =>
Medias not added with wired connection Gnome LiveDVDs (In reply to Manuel Hiebel from comment #3) > could be related to something else (I have not read all recent bugs) https://bugs.mageia.org/show_bug.cgi?id=11582 See Also:
(none) =>
https://bugs.mageia.org/show_bug.cgi?id=11582 KDE 64bit LiveDVD adds medias also, so it appears to be just Gnome affected. Nov 09 23:10:58 i4v.hodgins.homeip.net pkexec[2681]: root: The value for the SHELL variable was not found the /etc/shells file [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/drakrpm-addmedia 1 bin boot dev etc home initrd lib lost+found media mnt opt proc root run sbin srv sys tmp usr var]
[root@i4v ~]# cat /usr/bin/gurpmi.addmedia
#!/bin/sh
if [[ "" != "0" ]] ; then
exec /usr/bin/pkexec /usr/libexec/drakrpm-addmedia $""*
else
exec /usr/libexec/drakrpm-addmedia $""*
fi
The extra double quotes seem to be causing the command to append all files
listed in /, rather then the parameters that were passed.
Also, as Colin suggested, in the if stmt, might be better to use $UID,
rather then $(id -u). I got into the habit of using id -u, several years
ago, due to it being used in some hacks, but now that it's a read only
variable in bash, I don't think we need to worry about that.
Dave Hodgins
2013-11-10 05:42:34 CET
CC:
(none) =>
tmb the patch works, it's gnome / gdm that is borkes and does not init the environment properly... https://bugs.mageia.org/show_bug.cgi?id=11582 otherwise kde isos would show the same issue. still valid gnome livecd (Nov 10th build) Still valid kde4 x86_64 live dvd. In the installed system, running "gurpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'" displays a dialog with the message "bad <url> (for local directory the path must be absolute tmp". After editing gurpmi.addmedia, and changing both $""* to "$@", it's still failing with a message "Unable to add medium, errors reported: ...retrieving failed: unknown protocol defined for $MIRRORLIST at /usr/lib/perl5/vendor_perl/5.18.1/urpm/download.pm line 989. unable to access the distribution medium (no media.cfg file found) Medium: ($MIRRORLIST)" urpmi.addmedia is working, but not gurpmi.addmedia.
claire robinson
2013-11-11 12:29:45 CET
Summary:
Medias not added with wired connection Gnome LiveDVDs =>
Medias not added with wired connection Live ISOs
Manuel Hiebel
2013-11-11 21:24:48 CET
CC:
(none) =>
thierry.vignaud Ignore the no media.cfg file found. That seems to have been a temporary mirror problem. With "$@", it's now working. Note that it must be "$@", not "$*", or '$*, or '$@", in the resulting bash script, for it to work properly. Not sure where the '$*, or '$@" examples come from. I think perhaps people were confused with the workaround for Makefile handling of the $* and $@ variables before and thinking they had special meaning. They do not. The $""* that appeared in the generated files was simply due to not changing the double quotes to single ones when the expression was converted to be single quoted overall. It was intended that I only used $* before but as you point out "$@" is better as it handles spaces and other special chars in arguments. In Makefiles speak assuming a single quoted echo, this will be "$$''@" which I've now committed in drakrpm and drakx itself (so covers stage2 and drakxtools) I need to roll out to other Makefiles in time. was fixed Status:
NEW =>
RESOLVED $ drakrpm
/usr/bin/drakrpm: line 5: 4770 Segmentation fault /usr/bin/pkexec /usr/libexec/drakrpm "$@"
# drakrpm
Segmentation fault
this isue after i use this commands:
urpmi.removemedia -a
urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.cauldron.x86_64.list'
urpmi --auto-update --auto
urpmi --auto-update
*and have an problem then fix with 64-65-66-67*
64 rm -f /var/lib/rpm/_db*
65 rm -f /var/lib/rpm/.RPMLOCK
66 rpm --rebuilddb
67 rpm -q rpm
68 urpmi --auto-update
Sorry-i cant speak english well.CC:
(none) =>
0mojtabaheshmati |