mirror of
https://github.com/systemd/systemd.git
synced 2025-02-28 05:57:33 +03:00
gpt-auto-generator: Skip /home mounting if /home is not empty
This commit is contained in:
parent
1a14a53cfd
commit
4b1b14a6a6
@ -40,6 +40,7 @@
|
||||
*
|
||||
* - Properly handle cryptsetup partitions
|
||||
* - Define new partition type for encrypted swap
|
||||
* - Make /home automount rather than mount
|
||||
*
|
||||
*/
|
||||
|
||||
@ -201,6 +202,9 @@ static int add_home(const char *path, const char *fstype) {
|
||||
_cleanup_free_ char *unit = NULL, *lnk = NULL;
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
|
||||
if (dir_is_empty("/home") <= 0)
|
||||
return 0;
|
||||
|
||||
log_debug("Adding home: %s %s", path, fstype);
|
||||
|
||||
unit = strappend(arg_dest, "/home.mount");
|
||||
|
Loading…
x
Reference in New Issue
Block a user