Patch runit to exec upon shutdown
Bug #1238343 reported by
Ryan Finnie
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Finnix |
Fix Released
|
Wishlist
|
Ryan Finnie |
Bug Description
Currently the initrd moves the userland /sbin/runit to /.init and links it back, to make it run from RAM so the union (and hence CD) aren't blocked upon shutdown. It works, but is sort of a hack. A better approach would be if runit could exec another program at the very end (giving it PID 1). Turns out this is really easy to patch into runit.
1) Patch runit, make it look for /etc/runit/4 and execve() it if it exists, after stage 3 is done.
2) Split state-shutdown-
3) ln -s state-stopping 3; ln -s state-shutdown 4
4) Remove /.init hack in initrd.
Changed in finnix: | |
assignee: | nobody → Ryan Finnie (fo0bar) |
Changed in finnix: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Distribution: 109
Source: finnix-scripts
Source-Version: 20131010.0
A package update has been sent to the Finnix archive, which marks this
bug as fixed. A copy of the upload changes is included below.
Thank you,
Your friendly Finnix Launchpad assistant
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8 474f67ea45b231b 9c6001d14ce 1632 finnix- scripts_ 20131010. 0.dsc fcd6932e1e4d16b 13e780995e2 36864 finnix- scripts_ 20131010. 0.tar.xz c2040d0db96e087 7978c8e9ca0 66756 finnix- scripts_ 20131010. 0_all.deb 11f4119d5da993f 61ed4103cb5da66 38d316e9c04e3e1 e0122 1632 finnix- scripts_ 20131010. 0.dsc 03607065c4494e6 fc373c6f149cdb5 49c0ff7af953c30 ef434 36864 finnix- scripts_ 20131010. 0.tar.xz b15bfff6359a685 2bd46945eb75c0f c73109b9dadc454 b59d6 66756 finnix- scripts_ 20131010. 0_all.deb 57ecf2cf302f242 12a 1632 misc optional finnix- scripts_ 20131010. 0.dsc 3fc6da7c00dcfba 674 36864 misc optional finnix- scripts_ 20131010. 0.tar.xz 9f0a5f3383f9a91 91c 66756 misc optional finnix- scripts_ 20131010. 0_all.deb
Date: Thu, 10 Oct 2013 18:16:45 -0700
Source: finnix-scripts
Binary: finnix-scripts
Architecture: source all
Version: 20131010.0
Distribution: unstable
Urgency: low
Maintainer: Ryan Finnie <email address hidden>
Changed-By: Ryan Finnie <email address hidden>
Description:
finnix-scripts - Scripts needed to run Finnix
Changes:
finnix-scripts (20131010.0) unstable; urgency=low
.
* Split state-shutdown-real into state-stopping (LP: #1238343)
Checksums-Sha1:
02409c0522adfb
3ece29d10cf698
3ebc19708c6786
Checksums-Sha256:
dbc78d273dd9ce
f9e768ebc86697
0c7c2046210755
Files:
f521395dce1917
fc7127bf2d0b73
b5739af662de16
-----BEGIN PGP SIGNATURE-----
SV1G2AAoJEH5go6 aGro2YXwQP/ jzyTcSCneQNEKAl X/mVhr84 s9APGR2d5Y9Pa1N YDscFnMcOJ3lujl z+Dhx0PcjrFyg7i 600T e69zGqjDSO+ H04bRtMTPsUOAG1 Brq/IXBFYi96m6u CEo7hsdy JtVnVBGzBqX6ivH UUaoBpku4LUrbLR j7tB1VVOJ72TNIg I5Bm IKYQGbqMMbrHB9h Q4ttshAFFPjTsRk 1OSNq3eJRALFid4 GgSB uNNZWMacrs3k4fK xUjWB+PpIVCVIss W0SaCRg39Gj23gN Z/c/sJ3Bu6 DUZu5mNAUOSQ02k xu9kh1WkNJ0h31b IhmaAJ5cM+ dgUaW60HL KPARm8Sowin2tCS RiKPb6vSweoRiA2 2jiniVsUL0Ae9tD DHHerD6Z hRDtZIWU6NvmyLP IfGHYQTQQ35ENDM X1TdXc838LTD6Qi VTux 3iCPOtr8TmBXwH0 OhSkD4XqqVtUZFy XuM38Pbe6MFplaa DMVR DHhEY3yCiebcbzs KNKwS1azGRWJsTh q7cBRW85IVmfD1a blx4 czmOY
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJ
dsJ430YC2BA0Hwi
/Uasrdxe3CSYFJk
ch4kMYBiGbhIx5L
Fk6qLO1MUKp9YDX
+DEVA3qP+
mkGyxSz0kQlAmFH
ZAscAYyRzC+
mK6wLIwNniU0Atf
D+KWoLAzGPkqL9h
kS9oR0NTzAw0QXV
u8jiFSH6xOLgV8t
=WBfT
-----END PGP SIGNATURE-----