Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#3298 closed task (fixed)

mkinitramfs has several bugs

Reported by: Pierre Labastie Owned by: blfs-book@…
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

The recently added mkinitramfs seems to be somewhat unadapted to current LFS/BLFS. For example, it supposes /bin/sh is an executable, and by using `type -p', supposes there are no aliases. But at least `ls' may be one. Also, udevd is now in /lib/udev and not in /sbin.

So here is a patch which tries to remedy some of the defects. Well, the patch is not enough: it makes the initrd, but I have not be able to reboot. Anyway, hope it makes a base.

Attachments (1)

mkinitramfs-udevd.patch (3.0 KB ) - added by Pierre Labastie 12 years ago.

Download all attachments as: .zip

Change History (4)

by Pierre Labastie, 12 years ago

Attachment: mkinitramfs-udevd.patch added

comment:1 by bdubbs@…, 12 years ago

Lets discuss on blfs-dev.

comment:2 by bdubbs@…, 12 years ago

Resolution: fixed
Status: newclosed

As discussed on blfs-dev, type -p will work from the script, but not from a paste to an interactive shell if an alias exists. Since the script is not designed to be pasted, I'll leave that structure.

Fixes were made to handle the case when udevd is is in /lib/udev.

The copy of /bin/sh will be handled properly whatever the symlink.

Any firmware files are now copied.

Closing, but please reopen if there are still issues.

comment:3 by bdubbs@…, 10 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.