summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunmin Lee <sunm.lee@samsung.com>2017-01-11 10:34:30 +0900
committerSunmin Lee <sunm.lee@samsung.com>2017-02-21 18:14:44 -0800
commitadf3c32219e41cb2cf60fe2c8fe3a670c0758384 (patch)
treebcbb8658eb3b357a35a1b28184d93626732703ec
parent65b43c644d61d55acaa6eea91a9245ca33765299 (diff)
downloadsystem-plugin-adf3c32219e41cb2cf60fe2c8fe3a670c0758384.tar.gz
system-plugin-adf3c32219e41cb2cf60fe2c8fe3a670c0758384.tar.bz2
system-plugin-adf3c32219e41cb2cf60fe2c8fe3a670c0758384.zip
- cynara.socket for cynara update - Set default dependency no to services - SDB debugging disabled Change-Id: I95ee8b8e6f4f8fbadbc6c888f7db169cd21f5fab Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
-rw-r--r--packaging/system-plugin.spec2
-rw-r--r--scripts/make_upgrade_image.sh2
-rw-r--r--units/init-update.service1
-rw-r--r--units/offline-update.service1
-rwxr-xr-xupgrade/update-init.sh15
5 files changed, 5 insertions, 16 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index 06a1e97..241f278 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -185,6 +185,7 @@ install -m 644 units/init-update.service %{buildroot}%{_unitdir}
install -m 644 units/offline-update.service %{buildroot}%{_unitdir}
ln -s ../init-update.service %{buildroot}%{_unitdir}/system-update.target.wants/init-update.service
ln -s ../getty.target %{buildroot}%{_unitdir}/system-update.target.wants
+ln -s ../cynara.socket %{buildroot}%{_unitdir}/system-update.target.wants
# ivi
install -m 755 scripts/usb_net_init.sh %{buildroot}%{_bindir}
@@ -307,6 +308,7 @@ mv %{_sysconfdir}/fstab_lazymnt %{_sysconfdir}/fstab
#%{_unitdir}/system-update.target.wants/offline-update.service
%{_unitdir}/system-update.target.wants/init-update.service
%{_unitdir}/system-update.target.wants/getty.target
+%{_unitdir}/system-update.target.wants/cynara.socket
%files -n systemd-user-helper
%manifest systemd-user-helper.manifest
diff --git a/scripts/make_upgrade_image.sh b/scripts/make_upgrade_image.sh
index 15968ce..b6f1433 100644
--- a/scripts/make_upgrade_image.sh
+++ b/scripts/make_upgrade_image.sh
@@ -6,7 +6,7 @@
# For sdb debugging
-sdb_debugging=1
+sdb_debugging=0
sdb_rule='SUBSYSTEM=="switch", ATTR{name}=="usb_cable", ATTR{state}=="1", RUN+="/usr/bin/direct_set_debug.sh --sdb-set"\nSUBSYSTEM=="switch", ATTR{name}=="usb_cable", ATTR{state}=="0", RUN+="/usr/bin/direct_set_debug.sh --sdb-unset"'
# Back up /home/owner & rpm db
diff --git a/units/init-update.service b/units/init-update.service
index d211f0e..672a76a 100644
--- a/units/init-update.service
+++ b/units/init-update.service
@@ -1,5 +1,6 @@
[Unit]
Description=System update initialize service
+DefaultDependencies=no
Requires=sysinit.target
After=sysinit.target
Before=sdbd.service
diff --git a/units/offline-update.service b/units/offline-update.service
index ed00616..adc8f12 100644
--- a/units/offline-update.service
+++ b/units/offline-update.service
@@ -1,5 +1,6 @@
[Unit]
Description=System update script service
+DefaultDependencies=no
Requires=sysinit.target
After=sysinit.target init-update.service
diff --git a/upgrade/update-init.sh b/upgrade/update-init.sh
index 4974e9e..371abfe 100755
--- a/upgrade/update-init.sh
+++ b/upgrade/update-init.sh
@@ -24,18 +24,3 @@ cp -af /usr/share/upgrade/data/home/owner /opt/usr/home
# Copy 3.0 rpm db
rm -rf /var/lib/rpm/*
cp -af /usr/share/upgrade/data/rpm/* /var/lib/rpm
-
-
-# For sdb debugging
-/usr/share/upgrade/scripts/200.filesystem-pre.patch.sh
-/usr/share/upgrade/scripts/201.tizen-platform-config_upgrade.sh
-/usr/share/upgrade/scripts/210.dlog_upgrade.sh
-/usr/share/upgrade/scripts/201.security_upgrade.sh
-/usr/share/upgrade/scripts/500.buxton2_upgrade.sh
-
-# Prevent executing again
-mv /usr/share/upgrade/scripts/200.filesystem-pre.patch.sh /usr/share/upgrade
-mv /usr/share/upgrade/scripts/201.tizen-platform-config_upgrade.sh /usr/share/upgrade
-mv /usr/share/upgrade/scripts/210.dlog_upgrade.sh /usr/share/upgrade
-mv /usr/share/upgrade/scripts/201.security_upgrade.sh /usr/share/upgrade
-mv /usr/share/upgrade/scripts/500.buxton2_upgrade.sh /usr/share/upgrade