*
* - Properly handle cryptsetup partitions
* - Define new partition type for encrypted swap
+ * - Make /home automount rather than mount
*
*/
"DefaultDependencies=no\n"
"Conflicts=" SPECIAL_UMOUNT_TARGET "\n"
"Before=" SPECIAL_UMOUNT_TARGET " " SPECIAL_SWAP_TARGET "\n\n"
- "[Mount]\n"
+ "[Swap]\n"
"What=%s\n",
path);
_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");