Re: Getting "Cannot resume from device" (or something along these) lines with dracut and add_device+="LABEL=sf_unix_swap"

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

 



'Twas brillig, and Shlomi Fish at 11/08/12 10:06 did gyre and gimble:
> Hi all,
> 
> I'm using Mageia Linux 3/Cauldron and have this in my dracut configuration:

The add_device stuff is a Mageia specific patch added rather late in the
development cycle. I did discuss the reasons for it (to act as a system
to enable LVM/RAID for swap partitions) with Harald and we came up with
a better suggestion but due to the timing I didn't have time to
implement it.

Anyway, this question isn't really relevant for upstream but I'll try
anyway.

> <<<
> [root@telaviv1 ~]# cat /etc/dracut.conf.d/51-mageia-resume.conf
> add_device+="LABEL=sf_unix_swap"
> [root@telaviv1 ~]#
>>>>
> 
> Now, at startup, I am getting (after waiting for several seconds) a
> message such as "Cannot resume from device" or
> "resume device not found" and then it boots normally.  My questions are:
> 
> 1. The label is valid. Can I use a label for the resume device?

It should work.

> 2. If not, can I use a UUID instead?

UUIDs should work also.

> 3. If I cannot use a label, then the man page of dracut should be
> fixed because -add-device does not mention anything  about not being
> able to use a LABEL (which is possible in e.g: /etc/fstab ).

Again, this is all a Mageia patch for now, which likely won't go
upstream (unless anyone else has a need for such behaviour?).

For reference the patch is here:
http://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0505-Add-a-new-add-device-option.patch?revision=278450&view=markup

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux