Change-Id: If98e87ba23d81981b3b7ef23e65e35b722072b3a
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
runtime::File systemdUserUnit(homeDir + "/.config/systemd/user");
systemdUserUnit.makeDirectory(true);
+ //mask systemd user unit
+ ret = ::symlink("/dev/null",
+ (systemdUserUnit.getPath() + "/starter.service").c_str());
+
+ if (ret != 0)
+ throw runtime::Exception("Failed to mask starter.service");
+
//initialize package db
execute("/usr/bin/pkg_initdb",
"pkg_initdb", std::to_string(user.getUid()));