Bug 11607 - Medias not added with wired connection Live ISOs
Summary: Medias not added with wired connection Live ISOs
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard: 4beta1
Keywords:
: 11617 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-06 15:33 CET by claire robinson
Modified: 2014-10-01 07:53 CEST (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
journal.txt (594.41 KB, text/plain)
2013-11-06 15:34 CET, claire robinson
Details

Description claire robinson 2013-11-06 15:33:02 CET
Installed twice to confirm this, it goes straight to the user config. and only live medias exist after logging in.

The wired network is connected OOTB when users have been configured and logged in.

journal shows finish-install trying to add medias but no failure.

I'll attach the journal.


Reproducible: 

Steps to Reproduce:
claire robinson 2013-11-06 15:33:18 CET

Whiteboard: (none) => 4beta1

Comment 1 claire robinson 2013-11-06 15:34:05 CET
Created attachment 4489 [details]
journal.txt
Comment 2 claire robinson 2013-11-06 15:35:11 CET
I'll check 64bit iso next.
Comment 3 Manuel Hiebel 2013-11-06 16:12:14 CET
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

Comment 4 claire robinson 2013-11-06 16:15:19 CET
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

Comment 5 Manuel Hiebel 2013-11-06 16:36:23 CET
(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

Comment 6 claire robinson 2013-11-06 17:32:25 CET
KDE 64bit LiveDVD adds medias also, so it appears to be just Gnome affected.
Comment 7 Dave Hodgins 2013-11-07 20:05:07 CET
*** Bug 11617 has been marked as a duplicate of this bug. ***

CC: (none) => davidwhodgins

Comment 8 Dave Hodgins 2013-11-10 05:42:06 CET
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

Comment 9 Thomas Backlund 2013-11-10 17:25:37 CET
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.
Comment 10 claire robinson 2013-11-11 10:10:07 CET
still valid gnome livecd (Nov 10th build)
Comment 11 Dave Hodgins 2013-11-11 12:15:22 CET
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

Comment 12 Dave Hodgins 2013-11-11 21:59:03 CET
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.
Comment 13 Colin Guthrie 2013-11-12 10:47:46 CET
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.
Comment 14 Manuel Hiebel 2014-01-23 22:31:52 CET
was fixed

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 15 mojtaba heshmati 2014-10-01 07:53:04 CEST
$ 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
Resolution: FIXED => WONTFIX


Note You need to log in before you can comment on or make changes to this bug.