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

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
Kristen
Elfe
Messages : 709
Inscription : ven. 14 oct. 2011, 10:24
Localisation : Finistère France

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

Message 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
Dernière modification par Kristen le ven. 04 déc. 2020, 08:58, modifié 1 fois.
KDE Plasma sur
- fixe Intel Core i5-4570 CPU @ 3.20GHz × 4 - RAM 12 Go - Carte graphique GeForce GTX 750 Ti NV117 - Écran 24" et 23" hdmi
- Lenovo IdeaPad 3 15ALC6 - 15.6" - Ryzen 5 5500U - 16 Go RAM - 128 Go SSD + 1 To HDD
- Lenovo Ideapad S130-14IGM
Avatar de l’utilisateur
papajoke
Elfe
Messages : 773
Inscription : sam. 30 août 2014, 19:54

Re: [systemd] fichier homed.conf explication

Message 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
Dernière modification par papajoke le jeu. 03 déc. 2020, 14:35, modifié 2 fois.
Arch stable - Kde 5 / zsh - btrfs/mbr - Intel Core i3 - 6Go RAM - GeForce 405 video-nouveau
Avatar de l’utilisateur
CoudUr
yeomen
Messages : 230
Inscription : sam. 06 avr. 2013, 17:12

Re: [systemd] fichier homed.conf explication

Message 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/
Avatar de l’utilisateur
Kristen
Elfe
Messages : 709
Inscription : ven. 14 oct. 2011, 10:24
Localisation : Finistère France

Re: [systemd] fichier homed.conf explication

Message par Kristen »

OK merci à vous deux.
KDE Plasma sur
- fixe Intel Core i5-4570 CPU @ 3.20GHz × 4 - RAM 12 Go - Carte graphique GeForce GTX 750 Ti NV117 - Écran 24" et 23" hdmi
- Lenovo IdeaPad 3 15ALC6 - 15.6" - Ryzen 5 5500U - 16 Go RAM - 128 Go SSD + 1 To HDD
- Lenovo Ideapad S130-14IGM
Répondre