[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mkinitramfs - "Label not honored in /etc/fstat"



On Mon, 02 Mar 2009, Peter Pranter wrote:

> Dear ladies and gentlemen!
> 
> Please insert the following 4 lines after line 229 into "hook-funktions" 
> (mkinitramfs-tools) to honour a label in "/etc/fstab":
> 
>         if [ -z "${root}" ]; then
>                 eval "$(mount | awk '$1 ~ /=/ {if ($3 == "/") 
> {split($1,a,"="); print "root=" a[2] "\nFSTYPE=" $5; exit}}')"
>                 if [ -n "${root}" ]; then 
> root="/dev/disk/by-label/${root}"; fi
>         fi 
> 
> Tested on Debian (Release 5.0)

what are you trying to do?
a proper bug report against initramfs-tools might be appropriate. 

kind regards

-- 
maks


Reply to: