installer: Add hostname.

* gnu/installer/hostname.scm: New file.
* gnu/installer.scm (installer-program): Use new module above.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add new file.
* po/guix/POTFILES.in: Add new file.
master
Mathieu Othacehe 2018-12-05 14:45:53 +09:00 committed by Ludovic Courtès
parent b51bde71a9
commit b4658c258e
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
4 changed files with 26 additions and 0 deletions

View File

@ -278,6 +278,7 @@ selected keymap."
(gnu installer keymap) (gnu installer keymap)
(gnu installer steps) (gnu installer steps)
(gnu installer final) (gnu installer final)
(gnu installer hostname)
(gnu installer locale) (gnu installer locale)
(gnu installer parted) (gnu installer parted)
(gnu installer services) (gnu installer services)

View File

@ -0,0 +1,23 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu installer hostname)
#:export (hostname->configuration))
(define (hostname->configuration hostname)
`((host-name ,hostname)))

View File

@ -570,6 +570,7 @@ GNU_SYSTEM_MODULES += \
%D%/installer/record.scm \ %D%/installer/record.scm \
%D%/installer/connman.scm \ %D%/installer/connman.scm \
%D%/installer/final.scm \ %D%/installer/final.scm \
%D%/installer/hostname.scm \
%D%/installer/keymap.scm \ %D%/installer/keymap.scm \
%D%/installer/locale.scm \ %D%/installer/locale.scm \
%D%/installer/newt.scm \ %D%/installer/newt.scm \

View File

@ -11,6 +11,7 @@ guix/import/opam.scm
gnu/installer.scm gnu/installer.scm
gnu/installer/record.scm gnu/installer/record.scm
gnu/installer/connman.scm gnu/installer/connman.scm
gnu/installer/hostname.scm
gnu/installer/keymap.scm gnu/installer/keymap.scm
gnu/installer/locale.scm gnu/installer/locale.scm
gnu/installer/newt.scm gnu/installer/newt.scm