[Bug 1156494] Re: installer doesn't add initrd option in lilo.conf

Joachim Wiedorn 1156494 at bugs.launchpad.net
Thu Mar 21 21:17:10 UTC 2013


morozovvs wrote on 2013-03-19 08:52:

> Reinstallation of lilo didn't solve a problem, so i've started manual
> editing of lilo.conf.

Ubuntu 12.04 comes out a view weeks earlier then my patch to lilo. The
current Debian version of lilo (23.2-4) has the bugfix for this problem.

You can fix the bug with this small patch for liloconfig script:

--- aa/usr/sbin/liloconfig	2011-04-09 17:08:01.000000000 +0200
+++ bb/usr/sbin/liloconfig	2012-04-15 10:18:15.936797140 +0200
@@ -456,7 +456,7 @@
 	my $nr2;
 
 	# search for kernel image files
-	my @vmlinuz = readpipe("/bin/ls -t -1 /boot/vmlinuz-2* 2>/dev/null");
+	my @vmlinuz = readpipe("/bin/ls -t -1 /boot/vmlinuz-* 2>/dev/null");
 
 	# append to new lilo.conf
 	open(MYFH_NEW, ">> $liloconfnew") or die "Cannot open file: $!";


You see: the old script working only for kernels beginning with 2*
and couldn't find the newer 3* kernel versions.

---
Have a nice day.

Joachim (Germany)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lilo in Ubuntu.
https://bugs.launchpad.net/bugs/1156494

Title:
  installer doesn't add initrd option in lilo.conf

Status in “lilo” package in Ubuntu:
  New

Bug description:
  After installation of Ubuntu using netboot (ftp.ubuntu.com/ubuntu/dists/precise/main/installer/amd64/current/images/netboot/netboot.tar.gz+mini.iso) image with lilo as boot loader and non-standard root partition (encrypted) system can not boot - it can not mount root device. Busybox is unavailable.
  Some googling and analysing of boot process have shown that initrd option is missing in lilo.conf so initrd.img can not be loaded, so init scripts can not be executed.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: lilo 1:23.2-2
  ProcVersionSignature: Ubuntu 3.2.0-38.61-generic 3.2.37
  Uname: Linux 3.2.0-38-generic x86_64
  ApportVersion: 2.0.1-0ubuntu17.1
  Architecture: amd64
  Date: Mon Mar 18 10:15:47 2013
  MarkForUpload: True
  ProcEnviron:
   LANGUAGE=ru:en
   PATH=(custom, no user)
   LANG=ru_RU.UTF-8
   SHELL=/bin/bash
  SourcePackage: lilo
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lilo/+bug/1156494/+subscriptions




More information about the foundations-bugs mailing list