Bug 8335 - After live cd install, on first reboot, adding repositories fails on real HW (Undefined subroutine &services::start called at /usr/sbin/finish-install line 109)
Summary: After live cd install, on first reboot, adding repositories fails on real HW ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard: 3beta1
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-12-09 01:25 CET by Dave Hodgins
Modified: 2012-12-09 15:25 CET (History)
1 user (show)

See Also:
Source RPM: drakxtools-14.50-1.mga3
CVE:
Status comment:


Attachments
Patch to add require services to finish-install (296 bytes, patch)
2012-12-09 03:15 CET, Dave Hodgins
Details | Diff

Description Dave Hodgins 2012-12-09 01:25:21 CET
If I'm reading the code correctly,
/usr/sbin/finish-install
needs to have a line added with
require services;

In a vb install, where it works, journalctl shows ...
Dec 08 18:53:11 localhost finish-install[1791]: calling ask_network
Dec 08 18:53:11 localhost finish-install[1791]: calling ask_urpmi

On a real hardware install, where it fails, journalctl shows ...
Dec 08 18:35:05 localhost finish-install[1845]: calling ask_network
Dec 08 18:35:05 localhost finish-install[1845]: ask_network failed: Undefined subroutine &services::start called at /usr/sbin/finish-install line 109.
Dec 08 18:35:05 localhost finish-install[1845]: calling ask_urpmi

Why it's working in a vb install, I have no idea.
Dave Hodgins 2012-12-09 01:25:41 CET

Whiteboard: (none) => 3beta1

Comment 1 Dave Hodgins 2012-12-09 03:15:54 CET
Created attachment 3217 [details]
Patch to add require services to finish-install

I've confirmed that applying the attached patch, while running from a live iso,
before installing to the hard drive, fixes the problem.
Manuel Hiebel 2012-12-09 12:45:03 CET

Keywords: (none) => PATCH
Source RPM: drakx-finish-install-14.50-1.mga3 => drakxtools-14.50-1.mga3

Thierry Vignaud 2012-12-09 15:20:43 CET

CC: (none) => mageia
Summary: After live cd install, on first reboot, adding repositories fails on real hardware. => After live cd install, on first reboot, adding repositories fails on real HW (Undefined subroutine &services::start called at /usr/sbin/finish-install line 109)

Comment 2 Thierry Vignaud 2012-12-09 15:25:24 CET
Thx!!! Fixed in SVN (and credited to you)

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


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