* [bug#31523] [PATCH 0/2] Getting rid of 'title' in 'file-system' declarations
[not found] <87tvqrqiw8.fsf@lapdog.tobias.gr>
@ 2018-05-29 13:11 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-05-29 13:11 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 31523-done
Hello Tobias,
Tobias Geerinckx-Rice <me@tobias.gr> skribis:
> gnu/services/base.scm:309:35: In procedure file-system->fstab-entry:
> In procedure file-system-label->string: Wrong type argument:
> #<<file-system> device: #<file-system-label "EFI"> mount-point:
Oops, fixed in 0d56d9c714dc986fd049e07d8ad423d1e944771f.
Thanks for the heads-up!
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#31523] [PATCH 0/2] Getting rid of 'title' in 'file-system' declarations
@ 2018-05-18 22:12 Ludovic Courtès
2018-05-26 13:24 ` Ludovic Courtès
2018-05-26 14:10 ` Nils Gillmann
0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-05-18 22:12 UTC (permalink / raw)
To: 31523
Hello Guix!
These patches allow us to get rid of the infamous ‘title’ field in
‘file-system’ declarations, which has always been problematic. It does
so by introducing a new <file-system-label> data type, such that one can
write:
(file-system
(mount-point "/home")
(type "ext4")
(device (file-system-label "my-home")))
which probably looks clearer and is definitely less error prone.
The ‘title’ field is removed but some macrology takes care of
implementing backward compatibility by detecting ‘title’ fields, issuing
a deprecation warning, and adjusting the ‘device’ value according to the
‘title’.
The “installed-os” test passes.
Feedback welcome!
Ludo’.
Ludovic Courtès (2):
file-systems: Remove 'title' field and add <file-system-label>.
system: Remove uses of the 'title' field of <file-system>.
doc/guix.texi | 68 ++++++------
gnu/bootloader/grub.scm | 10 +-
gnu/build/file-systems.scm | 54 +++-------
gnu/build/linux-boot.scm | 12 ++-
gnu/build/shepherd.scm | 3 +-
gnu/services/base.scm | 17 ++-
gnu/system.scm | 36 ++++---
gnu/system/examples/bare-bones.tmpl | 3 +-
gnu/system/examples/beaglebone-black.tmpl | 3 +-
gnu/system/examples/lightweight-desktop.tmpl | 4 +-
gnu/system/examples/vm-image.tmpl | 3 +-
gnu/system/file-systems.scm | 108 ++++++++++++++++---
gnu/system/install.scm | 4 +-
gnu/system/vm.scm | 7 +-
gnu/tests.scm | 3 +-
gnu/tests/install.scm | 26 ++---
guix/scripts/system.scm | 31 +++---
tests/guix-system.sh | 9 +-
tests/system.scm | 6 +-
19 files changed, 227 insertions(+), 180 deletions(-)
--
2.17.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#31523] [PATCH 0/2] Getting rid of 'title' in 'file-system' declarations
2018-05-18 22:12 Ludovic Courtès
@ 2018-05-26 13:24 ` Ludovic Courtès
2018-05-26 14:10 ` Nils Gillmann
1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-05-26 13:24 UTC (permalink / raw)
To: 31523
Ludovic Courtès <ludo@gnu.org> skribis:
> These patches allow us to get rid of the infamous ‘title’ field in
> ‘file-system’ declarations, which has always been problematic. It does
> so by introducing a new <file-system-label> data type, such that one can
> write:
>
> (file-system
> (mount-point "/home")
> (type "ext4")
> (device (file-system-label "my-home")))
Ping! What do people think?
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#31523] [PATCH 0/2] Getting rid of 'title' in 'file-system' declarations
2018-05-18 22:12 Ludovic Courtès
2018-05-26 13:24 ` Ludovic Courtès
@ 2018-05-26 14:10 ` Nils Gillmann
1 sibling, 0 replies; 4+ messages in thread
From: Nils Gillmann @ 2018-05-26 14:10 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 31523
Ludovic Courtès transcribed 2.0K bytes:
> Hello Guix!
>
> These patches allow us to get rid of the infamous ‘title’ field in
> ‘file-system’ declarations, which has always been problematic. It does
> so by introducing a new <file-system-label> data type, such that one can
> write:
>
> (file-system
> (mount-point "/home")
> (type "ext4")
> (device (file-system-label "my-home")))
>
> which probably looks clearer and is definitely less error prone.
>
> The ‘title’ field is removed but some macrology takes care of
> implementing backward compatibility by detecting ‘title’ fields, issuing
> a deprecation warning, and adjusting the ‘device’ value according to the
> ‘title’.
>
> The “installed-os” test passes.
>
> Feedback welcome!
I can not test it at the moment, but I like the example,
which looks like it could make it less confusing for
newcomers.
> Ludo’.
>
> Ludovic Courtès (2):
> file-systems: Remove 'title' field and add <file-system-label>.
> system: Remove uses of the 'title' field of <file-system>.
>
> doc/guix.texi | 68 ++++++------
> gnu/bootloader/grub.scm | 10 +-
> gnu/build/file-systems.scm | 54 +++-------
> gnu/build/linux-boot.scm | 12 ++-
> gnu/build/shepherd.scm | 3 +-
> gnu/services/base.scm | 17 ++-
> gnu/system.scm | 36 ++++---
> gnu/system/examples/bare-bones.tmpl | 3 +-
> gnu/system/examples/beaglebone-black.tmpl | 3 +-
> gnu/system/examples/lightweight-desktop.tmpl | 4 +-
> gnu/system/examples/vm-image.tmpl | 3 +-
> gnu/system/file-systems.scm | 108 ++++++++++++++++---
> gnu/system/install.scm | 4 +-
> gnu/system/vm.scm | 7 +-
> gnu/tests.scm | 3 +-
> gnu/tests/install.scm | 26 ++---
> guix/scripts/system.scm | 31 +++---
> tests/guix-system.sh | 9 +-
> tests/system.scm | 6 +-
> 19 files changed, 227 insertions(+), 180 deletions(-)
>
> --
> 2.17.0
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-05-29 13:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87tvqrqiw8.fsf@lapdog.tobias.gr>
2018-05-29 13:11 ` [bug#31523] [PATCH 0/2] Getting rid of 'title' in 'file-system' declarations Ludovic Courtès
2018-05-18 22:12 Ludovic Courtès
2018-05-26 13:24 ` Ludovic Courtès
2018-05-26 14:10 ` Nils Gillmann
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.