Network not available in friendly recovery

Bug #244885 reported by jhansonxi on 2008-07-02
18
Affects Status Importance Assigned to Milestone
friendly-recovery (Ubuntu)
Medium
James Burkle
Nominated for Intrepid by Patrice Vetsel

Bug Description

Binary package hint: friendly-recovery

No network is available in recovery mode because dhclient is not started and there is no menu option to do so. This makes updating with aptitude rather inconvenient.

Was reported as part of bug #176674 but the reporter marked it invalid.

Michael Vogt (mvo) on 2008-07-30
Changed in friendly-recovery:
importance: Undecided → Medium
status: New → Triaged

hi i saw this listed as a bug with a mentor, and i'm new to ubuntu and linux so i thought i would come here to get help, really i'm not sure what my first step is here. i do know some programming, and i probably have most of my experience with... javascript, anyway i have learned c, and been introduced to some important c++ features. i also have some experience with php, whats my first step?

Michael Vogt (mvo) wrote :

@Daniel: thanks for your interesst in this. The first step is probably to just do a "apt-get source friendly-recovery" and check out the source code of it. It is written in shell (bash) and relatively small. Let me know if you have specific questions.

@Michael: Ok great thanks for the advice. That worked easily enough. I
located the scripts and files invloved and am trying to figure it out now
but I am wondering how does one go about testing the script? Also, there is
a script rcS-sulogin in etc/event.d/ that I am not sure what its use is for?
There were some notes about it in the changelog, speaking of which, what
exactly is the changelog?

On Fri, Aug 1, 2008 at 8:57 AM, Michael Vogt <email address hidden>wrote:

> @Daniel: thanks for your interesst in this. The first step is probably
> to just do a "apt-get source friendly-recovery" and check out the source
> code of it. It is written in shell (bash) and relatively small. Let me
> know if you have specific questions.
>
> --
> Network not available in Hardy Heron 8.04
> https://bugs.launchpad.net/bugs/244885
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "friendly-recovery" source package in Ubuntu: Triaged
>
> Bug description:
> Binary package hint: friendly-recovery
>
> No network is available in recovery mode because dhclient is not started
> and there is no menu option to do so. This makes updating with aptitude
> rather inconvenient.
>
> Was reported as part of bug #176674 but the reporter marked it invalid.
>

--
Dan Zeleznikar
<email address hidden>
<email address hidden>
(216) 233-6232

Changed in friendly-recovery:
assignee: nobody → daniel-zeleznikar
status: Triaged → In Progress

sorry about the email reply, I won't do that again...

cruzero80 (multibolsa) wrote :

Hi I am a Ubuntu user for some time now and would like to take one more step and start helping out in it's development and though this would be a nice place to start out.
I've been playing around with the friendly-recovery and would like to now where I could be of some help here. Has the dhclient plugin bug been fixed? I so let me now what else I could get my hands on.

James Burkle (james-burkle) wrote :

Greetings

@Michael Vogt

I just applied for the ubuntu mentors program, and saw this bug and figured I'd give it a shot. Here is my solution:

I noticed this program supports third party plugins. Specifically, it says to put a script in the folder /usr/share/recovery-mode/options and that the script will show up in the main menu of the recovery screen.
So I created a script that comes up in the recovery screen called netroot which basically starts a /sbin/sulogin, but starts dhclient eth0 before it, to assign your eth0 interface a DHCP address. I tested it a few times and it works, I was able to reach the internet and, more importantly, make apt-get work.

The script is attached, but what do I do now? How do I get this added to the package? Is it good enough, or am I off base here?

Thank you for your time.

James Burkle (james-burkle) wrote :

I followed the instructions here: https://wiki.ubuntu.com/PackagingGuide/Recipes/Debdiff

and created a debdiff It is attached.

Changed in friendly-recovery:
assignee: daniel-zeleznikar → james-burkle
Changed in friendly-recovery:
status: In Progress → Confirmed
Michael Vogt (mvo) wrote :

Thanks for the patch, commited to bzr.

Changed in friendly-recovery:
status: Confirmed → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package friendly-recovery - 0.2.8

---------------
friendly-recovery (0.2.8) jaunty; urgency=low

  [ James Burkle ]
  * usr/share/recovery-mode/options/netroot
    - add recovery mode with networking via dhclient (LP: #244885)

  [ Michael Vogt ]
  * usr/share/recovery-mode/options/grub
    - add support for grub reinstall
  * usr/share/recovery-mode/options/xfix:
    - better description (LP: #270496)

 -- Michael Vogt <email address hidden> Wed, 26 Nov 2008 17:35:07 +0100

Changed in friendly-recovery:
status: In Progress → Fix Released
berg (berg-foss) wrote :

Hello all,

at friendly-recovery (0.1.2) hardy-proposed; urgency=low

 I have some sugestions:

1)Do not lock dhclient at eth0 interface. the network could be attache at any interface and we should cannot force have a internet at eth0

change dhclient eth0 to dhclient and it will listen all interfaces

2) other sugestion is enable dhcp option to this to "Repair broken packages" too.
Many people like me have a wireless router to share internet access and use always dhcp to connect to internet.

In my case ( I think that many people too) I need the wireless interface enabled too. The network manager and the PSK saved could be available too.

3) I know that in recovery mode, only essential services should be started to avoid break the system again ( if you need recovery mode, you are in bad luck :)
then could be a check box with the options

( ) No start netwoks
( ) Start minimun interfaces ( aka ethX)
(x) Start all networks interfaces,includes wireless ( default option)

[]'s

NoOp (glgxg) wrote :

This bug is marked as fix-released... However the title of the bug is:

       Network not available in Hardy Heron 8.04

Please reset the status to 'In Progress' as networking is still not available via friendly-recovery in 8.04 or 8.10. I have all repositories enabled (including backports and proposed), both systems are fully updated, yet there is no 'netroot' in usr/share/recovery-mode/options/. On hardy the friendly-recovery version installed is 0.1.2 and on Intrepid it is 0.2.6.

Yes I know that I can install the proposed script myself, but we are finding issues on the ubuntu users list where new users are losing their Gnome desktop panels & on occasion they cannot get into a terminal via the desktop or gdm. Having the ability to direct them to recovery mode and easily enable networking so that they can then use the network to update/upgrade/reinstall a problem package is imperative.

Changed in friendly-recovery:
milestone: none → jaunty-alpha-3
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers