Change-Id: I085239d177f54a8c3edce42276859047b9bcdd23
%define on_off() %{expand:%%{?with_%{1}:ON}%%{!?with_%{1}:OFF}}
# resize2fs is needed for fast user add in fixed size (image) backend
+%if "%{?profile}" != "tv"
%define _with_resize2fs on
+%endif
%bcond_with resize2fs
Name: sessiond
popd
%install_service multi-user.target.wants sessiond.service
+%if "%{?profile}" == "tv"
+sed -i -e 's,\(Description=.*\),\1 (no resize2fs),' %{buildroot}%{_unitdir}/sessiond.service
+%endif
%files
%manifest sessiond.manifest
bool DirBackendAddFixedSize::AddSubsessionPrepareFromTemplate (const std::string_view subsession_name, const fs::path& main_path, int uid, int gid) const
{
- if (!OS::have_resize2fs())
+ if (!OS::have_resize2fs()) {
+ LOGW("This version has been compiled without resize2fs - can not use fast image-based user addition");
return false;
+ }
const auto template_dir = main_path / TemplateName();
const auto template_img = DirBackendFixedSize::GetImagePathFromSubsessionPath(template_dir);