Skip to content

Commit

Permalink
fix autoinst scheme with usb (if not mounted) (bnc#817871)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fehr committed Apr 30, 2013
1 parent d4b07ba commit 65a22c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/include/io.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
map toks = AutoinstConfig::urltok;
toks["scheme"] = Scheme;
toks["host"] = Host;
y2milestone( "Scheme:%1 Host:%2 Path:%3 Localfile:%4", Scheme, Host, Path, Localfile);
if (regexpsub(Path, "(.*)//(.*)", "\\1\/\\2")!= nil)
{
Path = regexpsub(Path, "(.*)//(.*)", "\\1\/\\2");
Expand Down Expand Up @@ -314,9 +315,11 @@
}
foreach( string Host, deviceList, ``{
y2milestone("looking for profile on %1", Host);
mount_point = Storage::DeviceMounted("/dev/"+Host);
string mp = Storage::DeviceMounted("/dev/"+Host);
boolean already_mounted = !isempty(mount_point);
y2milestone("already mounted=%1 mountpoint=%2",already_mounted,mount_point);
if( already_mounted )
mount_point=mp;
y2milestone("already mounted=%1 mountpoint=%2 mp=%3",already_mounted,mount_point,mp);
if( ! already_mounted &&
!(boolean)SCR::Execute(.target.mount, [sformat("/dev/%1", Host),
mount_point], "-o noatime") ) {
Expand Down

0 comments on commit 65a22c3

Please sign in to comment.