FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-02-2009, 10:20 AM
Peter Pranter
 
Default mkinitramfs - "Label not honored in /etc/fstat"

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]
"
FSTYPE=" $5; exit}}')"

* * * * *
* * * if [ -n "${root}" ]; then root="/dev/disk/by-label/${root}";
fi

* * * * fi



Tested on Debian (Release 5.0)



Kind regards

Dipl Ing. Peter Pranter
Mobil: +43 (699) 121 979 55

Festnetz: +43 (1) 699 39 04

Fax: +43 (1) 699 39 04 21

Mein Server ist durch "Reverse-DNS-Lookup" gesichert. My server
is secured by "Reverse-DNS-Lookup".
 
Old 03-02-2009, 09:04 PM
maximilian attems
 
Default 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] "
FSTYPE=" $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


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 09:04 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org