Page 1 sur 1

[systemd] fichier homed.conf explication (Résolu)

Publié : jeu. 03 déc. 2020, 13:27
par Kristen
Bonjour
Je fais une recherche des fichiers .pacnew et je vois que j'ai un /etc/systemd/homed.conf.pacnew
Je regarde ce qu'il contient

Code : Tout sélectionner

cat /etc/systemd/homed.conf.pacnew 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See homed.conf(5) for details

[Home]
#DefaultStorage=
#DefaultFileSystemType=btrfs
et le compare à /etc/systemd/homed.conf

Code : Tout sélectionner

cat /etc/systemd/homed.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See homed.conf(5) for details

[Home]
#DefaultStorage=
#DefaultFileSystemType=ext4
Seule différence btrfs à la place de ext4 dans la ligne
#DefaultFileSystemType=btrfs ouext4

Par contre dans les deux fichiers, tout est commenté donc non lu.
D'où ma question :
à quoi sert ce fichier ?

Merci

Re: [systemd] fichier homed.conf explication

Publié : jeu. 03 déc. 2020, 14:21
par papajoke
bonjour

comme tout fichier de config, les lignes commentées de variables indiquent les valeurs par défaut
Donc si tu désires utiliser autre chose que btrfs lorsque tu vas créer ton prochain home systemd tu peux forcer cette variable à ext4 ou xfs (variable utile uniquement à la création du volume)

ps: marqué dans ta copie See homed.conf(5) for details :wink: et existe doc en line

Re: [systemd] fichier homed.conf explication

Publié : jeu. 03 déc. 2020, 14:33
par CoudUr
Bonjour,

C'est simplement un fichier de configuration de la nouvelle fonction de Systemd appelée systemd-homed qui permet de rendre portatif ton @home tout en le chiffrant.
Si tu ne te sers pas de cette fonctionnalité c'est normal que ce soit commenté, rien de grave.

man homed.conf
man systemd-homed

https://wiki.archlinux.org/index.php/Systemd-homed
https://www.howtogeek.com/673018/system ... ory-works/

Re: [systemd] fichier homed.conf explication

Publié : ven. 04 déc. 2020, 08:58
par Kristen
OK merci à vous deux.