mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Colin Guthrie <gmane-D409yXkIzt2rnn0nCzrM/w@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Getting "Cannot resume from device" (or something along these) lines with dracut and add_device+="LABEL=sf_unix_swap"
Date: Tue, 14 Aug 2012 23:05:01 +0100	[thread overview]
Message-ID: <k0ei2d$g3h$1@dough.gmane.org> (raw)
In-Reply-To: <CAAsq1beH8qcf5CpyvBeG+1EFEyBKY9WKq79wjSsJT9MHkrD_4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

'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/

      parent reply	other threads:[~2012-08-14 22:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11  9:06 Getting "Cannot resume from device" (or something along these) lines with dracut and add_device+="LABEL=sf_unix_swap" Shlomi Fish
     [not found] ` <CAAsq1beH8qcf5CpyvBeG+1EFEyBKY9WKq79wjSsJT9MHkrD_4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-14 22:05   ` Colin Guthrie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='k0ei2d$g3h$1@dough.gmane.org' \
    --to=gmane-d409yxkizt2rnn0nczrm/w@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox