FS#36289 - [mkinitcpio-busybox] add sync(1) applet

Attached to Project: Arch Linux
Opened by Christian Neukirchen (chneukirchen) - Friday, 26 July 2013, 19:03 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 28 July 2013, 15:04 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The stripped down version of busybox used for initrds doesn't provide sync(1), which is useful after doing maintainance from the initrd (since poweroff and reboot won't work there anyway). It should be tiny to add.

Additional info:
* mkinitcpio-busybox 1.21.1-1

Steps to reproduce:
% /usr/lib/initcpio/busybox sync
sync: applet not found
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 28 July 2013, 15:04 GMT
Reason for closing:  Implemented
Additional comments about closing:  mkinitcpio-busybox-1.21.1-2
Comment by Dave Reisner (falconindy) - Friday, 26 July 2013, 19:06 GMT
echo s >/proc/sysrq-trigger

Also, anything you could possibly do that needs sync'ing can be "manually" sync'd by unmounting the filesystem.
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 26 July 2013, 19:15 GMT
reboot/poweroff works, but should use with -f
Comment by Christian Neukirchen (chneukirchen) - Friday, 26 July 2013, 19:16 GMT
Good point with reboot -f.

Loading...