unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: maze@strahlungsfrei.de, Fredrik Salomonsson <plattfot@gmail.com>
Cc: Help-Guix <help-guix-bounces+maze+guix=strahlungsfrei.de@gnu.org>,
	help-guix@gnu.org
Subject: Re: btrfs and subvolumes for root
Date: Sat, 02 Sep 2017 13:34:25 +0200	[thread overview]
Message-ID: <871snpl4fy.fsf@fastmail.com> (raw)
In-Reply-To: <964cfe58f1b7e866fc2d4451d123e333@strahlungsfrei.de>

[-- Attachment #1: Type: text/plain, Size: 2000 bytes --]

maze@strahlungsfrei.de writes:

> Am 2017-08-06 05:46, schrieb Fredrik Salomonsson:
>> Hello Guix,
>> 
>> I'm testing out setting up a dual boot between GuixSD and Arch. I've
>> no idea how much each one will take on disk. I decided to try out
>> btrfs and subvolumes for the layout.
>> 
>> But I'm having some issues booting the thing.
>> 
>> My disk layout right now is:
>> sda
>>   sda1      1MB BIOS boot
>>   sda2      4G  swap
>>   sda3 228.9GB  btrfs
>> 
>> then subvolumes:
>> sda3/
>>   __current/guixsd-root
>>   __current/arch-root
>>   __current/boot
>>   __current/home
>> 
>> section from my config.scm, which is based on my old config (old one
>> is attached).
>> 
>> (file-systems (cons* (file-system
>>    (device "root")
>>    (title 'label)
>>    (mount-point "/boot")
>>    (options
>> "defaults,discard,compress=lzo,space_cache,autodefrag,subvol=__current/boot")
>>    (dependecies mapped-devices))
>> ;; repeat for guixsd-root and home but with correct value for subvol
>> )
>> 
>> guix system init worked fine but when booting it fails to locate the
>> bzImage. Which I assume is because it doesn't know that the root is in
>> a subvolume.
>> 
>> Long story short. How do I add rootflags to GuixSD's grub menu entry?
>> Need to add "rootflags=subvol=__current/guixsd-root" to the
>> linux-arguments. Might be an issue of having boot as a subvolume as
>> well.
>> 
>> Thanks
>> 
>> --
>> 
>> s/Fred[re]+i[ck]+/Fredrik/g
>
> Hello Fredrik,
>
> I am having the same problem. Adjusting the kernel parameters for the 
> GuixSD kernel seems currently not supported.  Looking at the source code 
> though it looks like this could be achieved via manipulating the 
> "bootloader-configuration-menu-entries" list. (Still a scheme noob!)

Hello!

Adjusting kernel parameters can be done with 'kernel-arguments'.

Example:

(operating-system
  [...]
  (kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp")))

HTH!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2017-09-02 11:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-06  3:46 btrfs and subvolumes for root Fredrik Salomonsson
2017-09-02 11:26 ` maze
2017-09-02 11:34   ` Marius Bakke [this message]
2017-09-06  4:13     ` Fredrik Salomonsson

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=871snpl4fy.fsf@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=help-guix-bounces+maze+guix=strahlungsfrei.de@gnu.org \
    --cc=help-guix@gnu.org \
    --cc=maze@strahlungsfrei.de \
    --cc=plattfot@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).