Bugfix: Support command delivery to syscall 2.1b_release accepted/tizen_2.1/20130425.040606 submit/tizen_2.1/20130424.230028
authorSangjung Woo <sangjung.woo@samsung.com>
Fri, 22 Mar 2013 07:26:08 +0000 (16:26 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Fri, 22 Mar 2013 07:26:08 +0000 (16:26 +0900)
commit2a7e791278c660c4e3fbe0e3a77829e53c8b8d44
tree86488057a69b9b0833fe65d4f57cfc89d1f303c5
parentf9dbb9e6caf78d2827d73736b9f0ef8a75d6f8e0
Bugfix: Support command delivery to syscall

This work is for bug fixing TDIS-2302: "Reboot download" can't reload to
download mode.

Previous sysvinit supports special command passing mechanism when
calling reboot, shutdown, halt. For example, when executing 'reboot
download', the 'download' command is delivered to reboot syscall so
system automatically enter the download mode after rebooting without any
hand action. (Press 'power' and 'volume down' button simultaneously)

However in systemd, when executing 'reboot/halt/shutdown', only realtime
signal is passed through '/dev/initctl'. So systemd daemon can't get the
command to execute.

In order to solve this issue, the command to be delivered is temporally
written to tmp file and shutdown service of systemd will read the
command if existing.

Change-Id: Ic5a07bfa144962f39276c36c33405931d4e592be
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
packaging/reboot_syscall_param.patch [new file with mode: 0644]
packaging/systemd.spec