hello tim, On Tue, 22 Aug 2006, Tim Phipps wrote:
> On Tue, 2006-08-22 at 16:20, maximilian attems wrote: > > it be nice if you would add an example where you need that? > > > I'm using "readlink -f" in a script in init-top from the > initramfs-tools to change the root device name from > /dev/disk/by-label/root to the real root device (/dev/hda2). I'm doing > this just to make the output of df tidy. If it makes the readlink binary > much larger to add this, just ignore this request. I can work around by > copying the normal readlink into /sbin (or using busybox). first i'm a bit surprised why you would need to do that, initramfs-tools boots just fine with root=/dev/disk/by-label/root but even than that is quite easily done with some shell expansion, see this example on uuid, label should be similar. root=$(/usr/lib/klibc/bin/readlink /dev/disk/by-uuid/225ee24e-8451-4f75-b444-9683c3403a99) echo realroot="/dev/${root#../../}" realroot=/dev/sda1 well if there is a real usecase i'd might hack an canocalise in readlink from klibc-utils or accept a patch. at the moment i'm a bit sceptic.. :) best regards -- maks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]