mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
sys-apps/kexec-tools: Move to coreos-overlay
This commit is contained in:
parent
e0f2957610
commit
6bcbb02c18
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=app-portage/elt-patches-20170422 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://kernel/linux/utils/kernel/kexec/kexec-tools-2.0.12.tar.xz
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=3fb94af34718495772718fe1502fd55c
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=app-portage/elt-patches-20170422 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://kernel/linux/utils/kernel/kexec/kexec-tools-2.0.13.tar.xz
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=3fb94af34718495772718fe1502fd55c
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=app-portage/elt-patches-20170422 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://kernel/linux/utils/kernel/kexec/kexec-tools-2.0.13.tar.xz
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=f648aa060f3b6b1d21c044ac26ddb410
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=app-portage/elt-patches-20170422 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
KEYWORDS=~amd64 ~arm64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://kernel/linux/utils/kernel/kexec/kexec-tools-2.0.14.tar.xz
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=7197b1396be98a6566bdd756d010b73b
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=app-portage/elt-patches-20170422 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://kernel/linux/utils/kernel/kexec/kexec-tools-2.0.4.tar.xz
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 flag-o-matic 2274fcc1e7ef6affaff5bcd636275417 libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=f583fdf3501cf1c98cb13a4707d5c8d5
|
@ -1,14 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=app-portage/elt-patches-20170422 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
SRC_URI=mirror://kernel/linux/utils/kernel/kexec/kexec-tools-2.0.9.tar.xz
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=b6a61f9d94109e8d8ff6ff2b67548094
|
@ -1,12 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test unpack
|
||||
DEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib ) >=dev-vcs/git-1.8.2.1 >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.15:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 virtual/pkgconfig
|
||||
DESCRIPTION=Load another kernel from the currently executing Linux kernel
|
||||
EAPI=5
|
||||
HOMEPAGE=https://kernel.org/pub/linux/utils/kernel/kexec/
|
||||
IUSE=booke lzma xen zlib
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=lzma? ( app-arch/xz-utils ) zlib? ( sys-libs/zlib )
|
||||
REQUIRED_USE=lzma? ( zlib )
|
||||
SLOT=0
|
||||
_eclasses_=autotools dc412f38566b91012efd58b9c203e6c3 autotools-utils 5a4611dfba155b1659528663fad4cd5e epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 git-r3 52a888802d25387c2c74cb845d1219bc libtool 0081a71a261724730ec4c248494f044d linux-info ca370deef9d44125d829f2eb6ebc83e0 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e systemd 34815d3b76e745c5ca33eec9f95074c2 toolchain-funcs 185a06792159ca143528e7010368e8af versionator c80ccf29e90adea7c5cae94b42eb76d0
|
||||
_md5_=3fb94af34718495772718fe1502fd55c
|
@ -1,28 +0,0 @@
|
||||
AUX 90_kexec 199 SHA256 0200acc44dfe1108bbc0123ccf3e41ad73d9709c13e8d5ef6333fdff575d3dd8 SHA512 31837eb7df9b5c9b63c5f500e55fb584e315ac20f328490ff812a265f1a01604724bf4699f142255f7c5fa78cb2d8f2d6220a91961ac90df644b5d545d47ca39 WHIRLPOOL de8bef4f71012ec2868b705dc2943cea27fc66e0987474bcf6269abc02a6409c7868a17ba7dc24a1016066cd6f65bed3179f83e3cc9b247c6a19f126905e7797
|
||||
AUX README.Gentoo 937 SHA256 6ddecc284c89f031792eb31455460a0acece4b3b6103b9ceb8ad79052d7ab42d SHA512 f082763692def43a97866b88443daf08a2bc1b0dccdc90160d12effa16e1293d8db6935c72ca9dd5502f844078241cbecdfde15b6e8f67a2cca8f3e89f14e654 WHIRLPOOL d8692b1599ef938e048dc42f4aa3ab73f644c68394243e16834b971772919656ebf95554e7d7226f17a86cc42e390c4a5b7cb611280e076e3dd2e02e3c315846
|
||||
AUX kexec-tools-2.0.0-respect-LDFLAGS.patch 293 SHA256 0f7e6cf0ef6bc4ffd898009f3e8d9952fcb2abff7537776023b2194019c885e5 SHA512 c5213462a1e543a357c128af51c9da260fcfa5bcddd9d6bd2fadc84f0456722752e2e7a5584de84d1beca580e07e40ec424eb2577d604beb186403975f7fcd1e WHIRLPOOL 79fe97189297b5d5d87f661ce30b88dee83972157ea99f153f0d0a3f33417e0da6f488c21b16fdcb777a68657fcff88283e49cf6ff2018784c660bc2b88904fb
|
||||
AUX kexec-tools-2.0.4-disable-kexec-test.patch 473 SHA256 95d7d6756aa438af926358dc9e6c964e11201a7c19b2ed2b457f013313d47558 SHA512 c7fe9176db7c3f9c84add1c263c5a695684bf1db55d47152534f0bbb97c084ad5d3f2090307d0bdfcf5622fa810aca3c104f81b3d24baa76f42d3f32d1d4bbad WHIRLPOOL 3b0cebf5aa1cd923c7867d588af9b74002b6266d3065e7c59061c5b510ad1f8aea0e1fa78d2f17a94bf25424db1d566a5648530e9ce5044ead28407b7f6135c5
|
||||
AUX kexec-tools-2.0.4-out-of-source.patch 816 SHA256 f86f053efcd210f7919f458a52721ae3704a905488935a66f67a039bd915d6bf SHA512 4839800f99e2bdb7dfbf3aa1f3ad795feb63b4e493812a50d4baa839a27b5e96319c4e848969cbcedf627a32ed5fbfb312461c2ac89b73daaa7f8f680f35f504 WHIRLPOOL ec72be471f55d26f18152d6c92c85974c9e2c89021566d2311e517b880846c94d19057f69d055de74954efdef9301fd356b87ff1647467d425bb755c54f338bb
|
||||
AUX kexec-tools-2.0.9-hardened.patch 663 SHA256 16c657d6c67925902272e204015b73ae6d2475a54231613a475aab5864f8aa71 SHA512 3ce9a829cb2f4971fcbcd2a300bd398483b88117fa79a77c330d4d295b5126c7474b98b2695b532296a97a76ceb7d6b84e12f53cb5eccdc8a05292bab2529501 WHIRLPOOL 7a252bf0a6142f537235e8c44a9e414398375a164f19f413b4af9d4e1106ce4d7c77bbfc666de8b4c2e819b95da47f6a33791b7bda3e574ffbfa243d5c6fd204
|
||||
AUX kexec.conf 340 SHA256 19d6a02cf0bf3cebf03dc81c3b9fd5f517815ab1060f67cb9019b7e9653a7fc0 SHA512 66beb57ee13dba70f75f12326643270a0c888e178fdfca8ba7a566a874707aebe2afebb6ceae976dfb0aaf3135048daad6277e70580e4c7911b9ddbf74e4f00a WHIRLPOOL b77bb59ab16ea67690fa3e551995510b0fb0d82f7e2f10f9ed7d7815eb1e498cdda9ea667d2648b62cd1ae86a3ab67ae2ca1abd1fd2b9fce376b64ac41fb8725
|
||||
AUX kexec.conf-2.0.4 1013 SHA256 4c1b7e4651cd4be342db48389bc560589c896004f0274f8aba35a92fcd790531 SHA512 96db2834454aa4d038061e9b1f918932da3d3054021487425d0f70c6ad32096b9433ae2f3921e83196b23af901c32e591df3d6a84a6d14e064608d8ad895a599 WHIRLPOOL 3041644bf1688ac6c89e6078adcee987913bce124ea3ae4a2ce342c0956f319cccae93aabf39ee4aed9f23812e575f7f06cbf110bf39d9d961a1a19294108f27
|
||||
AUX kexec.init-2.0.12 3361 SHA256 f462ad4908cd12f19d8255a1efb96cf98bef74d9965f9f47a914096d7b129fc5 SHA512 b4152adced5f2fb6b31b9a42d898efc83d5b6a612b315bc7960fcd16361ed85a465032ce46e54c49c11b0817b84dfa59f1ee00d43442c17ab23bece65e032060 WHIRLPOOL c5eaf77bc2f559d190c9ff7708d79e620071565005febf64e202df79769f0e46b9d4c1bcb5048408222d6312c0eb6b072b41a2805be912ad738668e0dd433e12
|
||||
AUX kexec.init-2.0.13-r1 3655 SHA256 c93221d21b73e58efab8d045e164a9be7caf8bed427380a6a75dc996085faf96 SHA512 1d04e14e6fe1debc55fa23029a68f78f2d2a408c12bee6d55252109da178c3dbc998db4ccc7f05f7f8c65b333b50d6a1da7bf0d325ee6cae2f00840078d8a457 WHIRLPOOL 3ea9d42e4bf63845e5310c9108690ee24867628cf89d688c7b0c70b5fc35c97a17ed1c073dc3871826b628986b2a5da7087f625e259625ab88558fd9d163828e
|
||||
AUX kexec.init-2.0.4-r2 3507 SHA256 643a90ea83b3940e44e6631337d8a56cb21c7b70408603a44611a52a0cce86c1 SHA512 a1b1d907a349b66b97bdbd04fcb0baf03add50816538591a6273e2c3e991b36dd9e15cbe694d915e369ad425c313673b2f9dfd756000fae22102c73ed07deff2 WHIRLPOOL e2b06e98a3c309055e05a88b5291a831c4d8f59e621ec6b52a7a62892f5e7fba75278af16fe9e0534fc274b96cbe04b7b5eb1cd56a938bcd4d79e4493571be0f
|
||||
AUX kexec.init-2.0.4-r3 3515 SHA256 3e179b6fd9515f8ce97a1ba15a3bb705bbb401e583a674932c664ac7955099a6 SHA512 b9de8b745bc343a6da559064ba1410fffd62e1c8a158012b7dc4c801dc5e5ab6be2aca81be0db7f235c5d1aace308f2d6ff3a3cbf09b7246dd9e1fe4f18655c1 WHIRLPOOL e7786abe4845f7e675b6963a709627b6870e2615bde5fd56b8895c327a31ac74bc1bd81e1e6213e262e46340b0af71ecce25a65371fae15f3d205d8d0316ddce
|
||||
AUX kexec.service 407 SHA256 d95610609301d46e0f67efd78653beabd7dd253d2bf00f5736de5cdfbf2ea94e SHA512 9f0fa6d39c67048fe774fee0f2e8ed10e9e12a2468e7dda193cd8c5bd8b4cf49819d14703efad35c91265cd4e03c6f5460934b5fe92efd06eab8dc619920b1e3 WHIRLPOOL 9a412481d729e7ec7cec3a4142f2159337d61baf22431e4129f1e7798bf2683f1802e51edc92800e6b42b8b9b01cd83ef51f67cbc1cb7a4b209f923f3180948f
|
||||
DIST kexec-tools-2.0.12.tar.xz 274776 SHA256 14ce67b6242426a7ded10f58b7d29d3cfef5c1379850e8ba3816bb42053f920d SHA512 d192f841180daf534f7214b6c7c5dcd9de0e5616e8cb0da164c24e8b5903a2f65bb1fbe6ca29a3b9077fa6f6435cc33fda19a96584e1f393ee7a2fe56f374dab WHIRLPOOL 9895716544987682f4ba9cc0622afa14c7dc844482fedce29ec9780b8ff74f87cf2bd79ef58febe651fa3bc5934b6d54aaae31d2593fb32ea9fffdca1e5f8c91
|
||||
DIST kexec-tools-2.0.13.tar.xz 276824 SHA256 874baf421171dbfca0084af2da71ccf5a67749dd2a27c3023da5f72460bae5cc SHA512 19ff83eb25f492de5d87c0d5c3df9189ec5af225c3343ae61ae595fcb02638c0d7b8474edfa569c46e7203ae68e6c358db929a7dcfbf908518a00d6b5a597081 WHIRLPOOL 9281a2141892972657a02d6374dfa42474ce7c83955d9d54a1fd50456c34b8b2018aa3ab179a393e365c7ed2bfd43b2a94d3397e2bb09e25e9751eb19eace4e7
|
||||
DIST kexec-tools-2.0.14.tar.xz 283640 SHA256 ffb2e7e99d9d08754c6bc1922aed3c000094f318665d82a72ecc76c4ff1c0dc6 SHA512 8c1f9d1f4bb69a621961d45091f9c8349535ae69b80168423663685b44d89e1b9324d5cd11c83e86d805a3371f4f1600b0def551c52efb3c6cf020e9c11c273f WHIRLPOOL 1f9cc414724bf2d710876b2fbf721543cbd973b272a66b86bf134774b946ec540579b698fa3bcb56a2041d226da2c4298f750180c671ece17633067370a9df8e
|
||||
DIST kexec-tools-2.0.4.tar.xz 271604 SHA256 e5f5ab00d746eb15b4714eca6a8ec5a1a86a62ce2bbdad1b3000161138a978c6 SHA512 2514f407d9150d2615dffc91a525fb28f159bef92b9543f9802e2618746b7d4c04137668ad8a8d8f0b75f68ed9057d09629ce736b6a061b5cf817b9d904f549e WHIRLPOOL 70ad298512e700cd1cdee7698e4fa68a769d91d3080d5d8387b8362ad49126ad68b0b6dbd1f13305958bdc988f805fa610e487682fd0eb5e4e9bcda0a9022627
|
||||
DIST kexec-tools-2.0.9.tar.xz 272728 SHA256 8ae34a9ceb76350954e1e1e3ca9ab51da15862bd5f2fd14392208e60fb454f71 SHA512 b58f8f0872f1a6a3a93bc67068d7035c4b39e985dafadc573585d92259ff289bf98d5a567293a5286668315ac2158b232919e0c6847fdefc68b7ecbcfab5109e WHIRLPOOL 840d9d17ce9facc131736ef52acabb03bcc6d21f671896ff5603bd8d6bd629519e169ca878a127b863235b236dafd3b29f598424b272f599503bb3f1a5f70050
|
||||
EBUILD kexec-tools-2.0.12.ebuild 1692 SHA256 e95cf5b22d5f203729caf44f98a463767fa0e636ff4ef789673ea96507a2dcc4 SHA512 720aa97b2ba3a5544d93da1917955ea3fc58d9be1dacbc4b919def40c99a4c3bc0fe815737c8f7c22cd98f054175973ec81913e45db8e31418cd02f1ff01e24c WHIRLPOOL e1db5f882641d0a9a25dc29b68ab0ff3f4ed7bad5cb1ec0f9e582d4fd7d9b86424189bbff383d39b8a57aed5452fbe170f67872327afbce719180d7fe4ccbcc4
|
||||
EBUILD kexec-tools-2.0.13-r1.ebuild 1695 SHA256 32903a8bcfcfa18e34479007fac8269aa8047646424dd813b95d8f1774106ea5 SHA512 20ee6d8c27aaeac8162a014c3ea8c267069d735cf154a28d7e46be83852b2ae87373dc94ba0b32278712f834c04d847e6e97fea385159107e5ff9f43274abf90 WHIRLPOOL aaa39972c1ec8820a69d724d7dd32024b565630a9ea12d6ef0c6a0921574a15bb32fadd9bbc3443657b95e88e8ec38609f2ce24e8a4f040a3366ddd8f9795903
|
||||
EBUILD kexec-tools-2.0.13.ebuild 1692 SHA256 e95cf5b22d5f203729caf44f98a463767fa0e636ff4ef789673ea96507a2dcc4 SHA512 720aa97b2ba3a5544d93da1917955ea3fc58d9be1dacbc4b919def40c99a4c3bc0fe815737c8f7c22cd98f054175973ec81913e45db8e31418cd02f1ff01e24c WHIRLPOOL e1db5f882641d0a9a25dc29b68ab0ff3f4ed7bad5cb1ec0f9e582d4fd7d9b86424189bbff383d39b8a57aed5452fbe170f67872327afbce719180d7fe4ccbcc4
|
||||
EBUILD kexec-tools-2.0.14.ebuild 1702 SHA256 cada848a47eacc98e0a81c0bfe4381659da1948b260200c7f32de2db60ef0f4d SHA512 43ba6d18a841c1f43e233ae7ef226bd042797ea9c6e25f58fd1a390deceb5ef7c2e2f45276cb97b8c6a5abc314e3e628fbc990c87e9f1a2222de468984597d74 WHIRLPOOL a2686361cedec3c9e63f9772abac03a3b77b68402e8ec19b372f36d66712fd29198e26b87923b00fe6128708b46fb2e9b90455c0f7f465d8262bf60cbd9b3377
|
||||
EBUILD kexec-tools-2.0.4-r2.ebuild 1639 SHA256 0cfc223b659de530ff90a67748cfe3f7cec6d2e69f52397847bbd93f95c774ad SHA512 0b1fdd825a235646f6589e1043a7edb190d3aeab6ec4dc153235140995d5ee6b09c226eb159182a3cebfcd9ff9251e241ef12fc0313a6f092a8187e197a3ce82 WHIRLPOOL 9289cf6095624cf4d93aa90883dc6f50751b4fafbadf4c03b8eed3dc1cf5fba4ff8c1b7f94cf8eebce8402fb5200388672f7e0a18eb26f116d69169ad7db896e
|
||||
EBUILD kexec-tools-2.0.9-r2.ebuild 1567 SHA256 a5b04efc07a93b218e83546f3429f5a812e635b6bac0b598c1bd9077e33d1076 SHA512 0ea7547f193991c7e7e33cd1545cd8b2795e9d945bfeb1a4942a2bb0490b1516a95fd7a9c7d51e993abfa5a675dfb5fb7e85e479bf4be728d23e7ecaa61547fc WHIRLPOOL 002b6ea013997e20c88ff2fa4e3fc49714bab3f3214056bfcbb59f2e4a886331d5dc7c4a234efb3ce328512574359e0dfa3ca678655bd51361c05ece9f1f3834
|
||||
EBUILD kexec-tools-9999.ebuild 1692 SHA256 e95cf5b22d5f203729caf44f98a463767fa0e636ff4ef789673ea96507a2dcc4 SHA512 720aa97b2ba3a5544d93da1917955ea3fc58d9be1dacbc4b919def40c99a4c3bc0fe815737c8f7c22cd98f054175973ec81913e45db8e31418cd02f1ff01e24c WHIRLPOOL e1db5f882641d0a9a25dc29b68ab0ff3f4ed7bad5cb1ec0f9e582d4fd7d9b86424189bbff383d39b8a57aed5452fbe170f67872327afbce719180d7fe4ccbcc4
|
||||
MISC ChangeLog 4635 SHA256 5d4db73b0ad8fe0a7658756629595187cd9d7f57bc49b7a1c967efadd2344131 SHA512 3d323bb7cb4391d70c455ed3f658010afe0241c07f8d0f670776c997088d21e79f9cb248273999da26acc5a5ca2bd884f947adf97841cef07e72684239538b4f WHIRLPOOL 8003c708454d492bfa20d7ebff1b80f91dcfc1c6cb290e6c197ba3b9330304c6d0f12e9584d8304b4cbc60902e9cd0007290e720bb8b147338db994492849f8f
|
||||
MISC ChangeLog-2015 13851 SHA256 a3bcc65aaef51bd56f433ca33a52ae000bdae38cdeee6160309893bdbf924a2e SHA512 056e5ffc5523bb1c2e9791dc4faa1715202cbe11b3300589f9cef62dcbfac78b41e99237c4044c1b8622f781f2a0a0343ec16dfdee795e2fa0ad11bafe94d0e5 WHIRLPOOL 2b93fa80c4499a1602a345d1546e795a745cc4d2aa0c874f9269ea1f7b9bd0b0931163027376ffb161d5622684b8612eba3acff81d7aecee3147486b40bb1002
|
||||
MISC metadata.xml 490 SHA256 7c27519c83a0610e3e576265116392d298620be323c61a45a7634f29714cf265 SHA512 6f4b25178cc6b8ff3fea664f2717eb7268d9e71c4ca46c170887eb836f9d78dff7e64067968175d018dc22bbcc2bb8cd6fd5f44edba0966fa568f9fd827a1cff WHIRLPOOL 45f2c1810f7717b0845b2003fea19be5cf9df3f3f2de22a686be9b961a6ebdcdad45cf12097b26b569dadf9a0e7300dcc735b9a4b0b64458f915a88fa8344c58
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
version="$1" ; shift
|
||||
image="$1" ; shift
|
||||
|
||||
exec sed \
|
||||
-e "s:\"vmlinuz-.*\":\"vmlinuz-${version}\":" \
|
||||
-e "s:/boot/initramfs-.*\.img:/boot/initramfs-${version}\.img:" \
|
||||
-i /etc/kexec.conf
|
@ -1,33 +0,0 @@
|
||||
Usage
|
||||
=====
|
||||
|
||||
Do
|
||||
$ man 8 kexec
|
||||
for full understanding of the underlying kexec command.
|
||||
Gentoo offers a wrapper to the bare kexec command through
|
||||
/etc/init.d/kexec.
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
Configuration is done in /etc/conf.d/kexec, which is self-documented.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
In Gentoo, kexec is invoked, i.e., the new kernel will be booted when
|
||||
rebooting, by reboot (8) command or by pressing Ctrl+Alt+Del.
|
||||
|
||||
If you want to use kexec once, just run
|
||||
$ /etc/init.d/kexec start
|
||||
|
||||
It'll reserve kexec call at reboot. Later on, you can reboot anytime,
|
||||
letting kexec starts another (or the same) kernel. When all is done in
|
||||
the runlevel 6 - killing processes, unmounting volumes, etc - kexec
|
||||
starts the new kernel instead of doing the normal hardware reboot.
|
||||
|
||||
If you want kexec to be run every time you reboot, add it to a runlevel:
|
||||
$ rc-update add kexec <runlevel>
|
||||
|
||||
If you want to reboot in the normal way this time, do:
|
||||
$ touch /nokexec
|
@ -1,11 +0,0 @@
|
||||
--- kdump/Makefile
|
||||
+++ kdump/Makefile
|
||||
@@ -18,7 +18,7 @@
|
||||
$(KDUMP): CC=$(TARGET_CC)
|
||||
$(KDUMP): $(KDUMP_OBJS)
|
||||
@$(MKDIR) -p $(@D)
|
||||
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $(KDUMP_OBJS)
|
||||
+ $(LINK.o) $(CFLAGS) -o $@ $(KDUMP_OBJS)
|
||||
|
||||
$(KDUMP_MANPAGE): kdump/kdump.8
|
||||
$(MKDIR) -p $(MANDIR)/man8
|
@ -1,17 +0,0 @@
|
||||
diff --git kexec-tools-2.0.3/kexec_test/Makefile kexec-tools-2.0.3/kexec_test/Makefile
|
||||
index fec6210..2ed4d51 100644
|
||||
--- kexec-tools-2.0.3/kexec_test/Makefile
|
||||
+++ kexec-tools-2.0.3/kexec_test/Makefile
|
||||
@@ -8,12 +8,6 @@ dist += kexec_test/Makefile $(KEXEC_TEST_SRCS) \
|
||||
kexec_test/x86-setup-legacy-pic.S
|
||||
|
||||
BUILD_KEXEC_TEST = no
|
||||
-ifeq ($(ARCH),i386)
|
||||
-BUILD_KEXEC_TEST = yes
|
||||
-endif
|
||||
-ifeq ($(ARCH),x86_64)
|
||||
-BUILD_KEXEC_TEST = yes
|
||||
-endif
|
||||
|
||||
ifeq ($(BUILD_KEXEC_TEST),yes)
|
||||
|
@ -1,24 +0,0 @@
|
||||
Makefile.in | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index c1859d1..1aa8559 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -44,7 +44,7 @@ TARGET_CFLAGS = @TARGET_CFLAGS@
|
||||
|
||||
# Base compiler flags. These are extended by the subcomponent-Makefiles
|
||||
# where necessary.
|
||||
-CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \
|
||||
+CPPFLAGS = @CPPFLAGS@ -I$(top_builddir)/include -I$(srcdir)/include -I$(srcdir)/util_lib/include \
|
||||
-Iinclude/ $($(ARCH)_CPPFLAGS)
|
||||
CFLAGS = @CFLAGS@ -fno-strict-aliasing -Wall -Wstrict-prototypes
|
||||
PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@
|
||||
@@ -77,6 +77,7 @@ pkgincludedir = $(includedir)/$(PACKAGE_NAME)
|
||||
DESTDIR =
|
||||
|
||||
srcdir = @srcdir@
|
||||
+top_builddir = @top_builddir@
|
||||
VPATH = .:$(srcdir)
|
||||
|
||||
# install paths
|
@ -1,16 +0,0 @@
|
||||
the purgatory subdir gets loaded into the kernel so we need to
|
||||
make sure it does not get built with compiler settings like the
|
||||
rest of the userland tools. that means no PIC/PIE/SSP/etc...
|
||||
|
||||
--- a/purgatory/Makefile
|
||||
+++ b/purgatory/Makefile
|
||||
@@ -47,7 +47,8 @@ purgatory/sha256.o: $(srcdir)/util_lib/sha256.c
|
||||
$(PURGATORY): CC=$(TARGET_CC)
|
||||
$(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \
|
||||
$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
|
||||
- -Os -fno-builtin -ffreestanding
|
||||
+ -Os -fno-builtin -ffreestanding \
|
||||
+ -fno-PIC -fno-PIE -fno-stack-protector
|
||||
|
||||
$(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
|
||||
-I$(srcdir)/purgatory/include \
|
@ -1,16 +0,0 @@
|
||||
# Kernel image pathname, relative from /boot.
|
||||
KNAME="bzimage"
|
||||
|
||||
# Additional arguments passed to kexec (8)
|
||||
# Following arguments are support:
|
||||
#
|
||||
# --reuse-cmdline
|
||||
# Use the current boot command line
|
||||
#
|
||||
# --command-line=string
|
||||
# Use a different command line
|
||||
#
|
||||
# --initrd=file
|
||||
# Specify an initrd to use
|
||||
#
|
||||
KEXEC_OPT_ARGS="--reuse-cmdline"
|
@ -1,34 +0,0 @@
|
||||
# Load kexec kernel image into memory during shutdown instead of bootup
|
||||
# (default: yes)
|
||||
#LOAD_DURING_SHUTDOWN="yes"
|
||||
|
||||
# Additional arguments passed to kexec (8)
|
||||
#KEXEC_OPT_ARGS=""
|
||||
|
||||
# Kernel image partition. Mounted automatically if not.
|
||||
# (default: /boot)
|
||||
#BOOTPART="/boot"
|
||||
|
||||
# Root partition (should be autodetected)
|
||||
#ROOTPART="/dev/hda3"
|
||||
|
||||
# Kernel image pathname, relative from BOOTPART.
|
||||
# If it's one of
|
||||
# {kernel-genkernel,bzImage,vmlinuz,kernel}-<currently running kernel version>,
|
||||
# or bzImage, vmlinuz (without suffix),
|
||||
# then it's automaticaly detected.
|
||||
# Setting it to "-" will disable kexec.
|
||||
#KNAME="vmlinuz-3.9.0"
|
||||
|
||||
# Initrd
|
||||
# Same automatic detection restriction as for KNAME apply.
|
||||
# initramfs-genkernel-<currently running kernel version>,
|
||||
# initrd{,.img}-<currently running kernel version>{,.img}
|
||||
# will be detected.
|
||||
#INITRD="/boot/fbsplash-emergence-1024x768"
|
||||
|
||||
# Kernel parameters (should be autodetected)
|
||||
#KPARAM="splash=silent,theme:emergence"
|
||||
|
||||
# Do not try to mount /boot
|
||||
# DONT_MOUNT_BOOT="yes"
|
@ -1,174 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Set up some defaults.
|
||||
: "${LOAD_DURING_SHUTDOWN:=yes}"
|
||||
: "${BOOTPART:=/boot}"
|
||||
: "${DONT_MOUNT_BOOT:=no}"
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
}
|
||||
|
||||
auto_prefix_bootpath() {
|
||||
# Only auto-add prefix to relative paths.
|
||||
case $1 in
|
||||
*/*) echo "$1";;
|
||||
*) echo "${BOOTPART}/$1" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
image_path() {
|
||||
# Do no sanity checking if the user has set a value.
|
||||
if [ -n "${KNAME}" ]; then
|
||||
auto_prefix_bootpath "${KNAME}"
|
||||
return
|
||||
fi
|
||||
|
||||
local x kver="$(uname -r)" karch="$(uname -m)"
|
||||
for x in \
|
||||
"bzImage" \
|
||||
"vmlinuz" \
|
||||
"bzImage-${kver}" \
|
||||
"vmlinuz-${kver}" \
|
||||
"kernel-genkernel-${karch}-${kver}" \
|
||||
"kernel-${kver}" \
|
||||
"kernel-${karch}"; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
initrd_path() {
|
||||
# Do no sanity checking if the user has set a value.
|
||||
if [ -n "${INITRD}" ]; then
|
||||
auto_prefix_bootpath "${INITRD}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
local x kver="$(uname -r)" karch="$(uname -m)"
|
||||
for x in \
|
||||
"initrd" \
|
||||
"initrd.img-${kver}" \
|
||||
"initrd-${kver}.img" \
|
||||
"initrd-${kver}" \
|
||||
"initramfs-${kver}.img" \
|
||||
"initramfs-genkernel-${karch}-${kver}"; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
mount_boot() {
|
||||
[ "${DONT_MOUNT_BOOT}" != "no" ] && return 1
|
||||
mountinfo -q "${BOOTPART}" && return 1
|
||||
|
||||
ebegin "Mounting ${BOOTPART}"
|
||||
mount "${BOOTPART}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
load_image() {
|
||||
if [ "${KNAME}" = "-" ]; then
|
||||
ebegin "Disabling kexec"
|
||||
kexec -u
|
||||
eend $?
|
||||
return # eend preserved $? for us.
|
||||
fi
|
||||
|
||||
local img initrd="$(initrd_path)" mounted=false kparamopt initrdopt
|
||||
|
||||
if ! img="$(image_path)"; then
|
||||
if mount_boot; then
|
||||
if img="$(image_path)"; then
|
||||
mounted=true
|
||||
initrd="$(initrd_path)"
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
umount "${BOOTPART}"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${ROOTPART}" ]; then
|
||||
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
|
||||
fi
|
||||
|
||||
if [ -z "${KPARAM}" ]; then
|
||||
kparamopt="--reuse-cmdline"
|
||||
fi
|
||||
|
||||
if [ -n "${initrd}" ]; then
|
||||
initrdopt="--initrd=${initrd}"
|
||||
fi
|
||||
|
||||
local msg
|
||||
[ -n "${initrd}" ] && \
|
||||
msg=" (with ${initrd})"
|
||||
ebegin "Using kernel image ${img}${msg} for kexec"
|
||||
|
||||
kexec ${KEXEC_OPT_ARGS} ${kparamopt} \
|
||||
-l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
|
||||
local ret=$?
|
||||
|
||||
${mounted} && umount "${BOOTPART}"
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ "${LOAD_DURING_SHUTDOWN}" = "yes" ]; then
|
||||
local mounted
|
||||
if mount_boot; then
|
||||
mounted=true
|
||||
fi
|
||||
if ! image_path >/dev/null; then
|
||||
ewarn "Cannot find kernel image!"
|
||||
ewarn "Please make sure a valid kernel image is present before reboot."
|
||||
return 0
|
||||
fi
|
||||
if [ -n "${mounted}" ]; then
|
||||
ebegin "Unmounting ${BOOTPART}"
|
||||
umount "${BOOTPART}"
|
||||
eend $?
|
||||
fi
|
||||
# $? is already set to the previous calls.
|
||||
return
|
||||
else
|
||||
load_image
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
if ! yesno ${RC_REBOOT}; then
|
||||
ebegin "Not rebooting; disabling kexec"
|
||||
kexec -u
|
||||
eend $?
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -f /nokexec ]; then
|
||||
ebegin "Rebooting; disabling kexec due to /nokexec"
|
||||
rm -f /nokexec
|
||||
kexec -u
|
||||
eend $?
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "${LOAD_DURING_SHUTDOWN}" = "yes" ]; then
|
||||
load_image
|
||||
fi
|
||||
}
|
@ -1,186 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Set up some defaults.
|
||||
: "${LOAD_DURING_SHUTDOWN:=yes}"
|
||||
: "${BOOTPART:=/boot}"
|
||||
: "${DONT_MOUNT_BOOT:=no}"
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
}
|
||||
|
||||
auto_prefix_bootpath() {
|
||||
# Only auto-add prefix to relative paths.
|
||||
case $1 in
|
||||
*/*) echo "$1";;
|
||||
*) echo "${BOOTPART}/$1" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
get_genkernel_arch() {
|
||||
case $1 in
|
||||
x86_64) echo "amd64" ;;
|
||||
i[3456]86) echo "x86" ;;
|
||||
*) echo "$1" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
image_path() {
|
||||
# Do no sanity checking if the user has set a value.
|
||||
if [ -n "${KNAME}" ]; then
|
||||
auto_prefix_bootpath "${KNAME}"
|
||||
return
|
||||
fi
|
||||
|
||||
local x kver="$(uname -r)" karch="$(uname -m)"
|
||||
local gkarch="$(get_genkernel_arch $karch)"
|
||||
for x in \
|
||||
"bzImage" \
|
||||
"vmlinuz" \
|
||||
"bzImage-${kver}" \
|
||||
"vmlinuz-${kver}" \
|
||||
"kernel-genkernel-${karch}-${kver}" \
|
||||
"kernel-genkernel-${gkarch}-${kver}" \
|
||||
"kernel-${kver}" \
|
||||
"kernel-${karch}"; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
initrd_path() {
|
||||
# Do no sanity checking if the user has set a value.
|
||||
if [ -n "${INITRD}" ]; then
|
||||
auto_prefix_bootpath "${INITRD}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
local x kver="$(uname -r)" karch="$(uname -m)"
|
||||
local gkarch="$(get_genkernel_arch $karch)"
|
||||
for x in \
|
||||
"initrd" \
|
||||
"initrd.img-${kver}" \
|
||||
"initrd-${kver}.img" \
|
||||
"initrd-${kver}" \
|
||||
"initramfs-${kver}.img" \
|
||||
"initramfs-genkernel-${karch}-${kver}" \
|
||||
"initramfs-genkernel-${gkarch}-${kver}"; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
mount_boot() {
|
||||
[ "${DONT_MOUNT_BOOT}" != "no" ] && return 1
|
||||
mountinfo -q "${BOOTPART}" && return 1
|
||||
|
||||
ebegin "Mounting ${BOOTPART}"
|
||||
mount "${BOOTPART}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
load_image() {
|
||||
if [ "${KNAME}" = "-" ]; then
|
||||
ebegin "Disabling kexec"
|
||||
kexec -u
|
||||
eend $?
|
||||
return # eend preserved $? for us.
|
||||
fi
|
||||
|
||||
local img initrd="$(initrd_path)" mounted=false kparamopt initrdopt
|
||||
|
||||
if ! img="$(image_path)"; then
|
||||
if mount_boot; then
|
||||
if img="$(image_path)"; then
|
||||
mounted=true
|
||||
initrd="$(initrd_path)"
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
umount "${BOOTPART}"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${ROOTPART}" ]; then
|
||||
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
|
||||
fi
|
||||
|
||||
if [ -z "${KPARAM}" ]; then
|
||||
kparamopt="--reuse-cmdline"
|
||||
fi
|
||||
|
||||
if [ -n "${initrd}" ]; then
|
||||
initrdopt="--initrd=${initrd}"
|
||||
fi
|
||||
|
||||
local msg
|
||||
[ -n "${initrd}" ] && \
|
||||
msg=" (with ${initrd})"
|
||||
ebegin "Using kernel image ${img}${msg} for kexec"
|
||||
|
||||
kexec ${KEXEC_OPT_ARGS} ${kparamopt} \
|
||||
-l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
|
||||
local ret=$?
|
||||
|
||||
${mounted} && umount "${BOOTPART}"
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ "${LOAD_DURING_SHUTDOWN}" = "yes" ]; then
|
||||
local mounted
|
||||
if mount_boot; then
|
||||
mounted=true
|
||||
fi
|
||||
if ! image_path >/dev/null; then
|
||||
ewarn "Cannot find kernel image!"
|
||||
ewarn "Please make sure a valid kernel image is present before reboot."
|
||||
return 0
|
||||
fi
|
||||
if [ -n "${mounted}" ]; then
|
||||
ebegin "Unmounting ${BOOTPART}"
|
||||
umount "${BOOTPART}"
|
||||
eend $?
|
||||
fi
|
||||
# $? is already set to the previous calls.
|
||||
return
|
||||
else
|
||||
load_image
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
if ! yesno ${RC_REBOOT}; then
|
||||
ebegin "Not rebooting; disabling kexec"
|
||||
kexec -u
|
||||
eend $?
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -f /nokexec ]; then
|
||||
ebegin "Rebooting; disabling kexec due to /nokexec"
|
||||
rm -f /nokexec
|
||||
kexec -u
|
||||
eend $?
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "${LOAD_DURING_SHUTDOWN}" = "yes" ]; then
|
||||
load_image
|
||||
fi
|
||||
}
|
@ -1,164 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
}
|
||||
|
||||
image_path() {
|
||||
local x= kver=$(uname -r) karch=$(uname -m)
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
KNAME="${KNAME:-bzImage}"
|
||||
if [ -e "${KNAME}" ]; then
|
||||
echo "${KNAME}"
|
||||
return 0
|
||||
fi
|
||||
for x in "${KNAME#${BOOTPART}}" vmlinuz \
|
||||
bzImage-${kver} vmlinuz-${kver} \
|
||||
kernel-genkernel-${karch}-${kver} \
|
||||
kernel-${kver} kernel-${karch}; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
initrd_path() {
|
||||
local x= kver=$(uname -r) karch=$(uname -m)
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
INITRD="${INITRD:-initrd}"
|
||||
if [ -e "${INITRD}" ]; then
|
||||
echo "${INITRD}"
|
||||
return 0
|
||||
fi
|
||||
for x in "${INITRD#${BOOTPART}}" \
|
||||
initrd.img-${kver} initrd-${kver}.img \
|
||||
initrd-${kver} initramfs-${kver}.img \
|
||||
initramfs-genkernel-${karch}-${kver} ; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
mount_boot(){
|
||||
local ret
|
||||
|
||||
[ -n "${DONT_MOUNT_BOOT}" ] && return 1
|
||||
grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1
|
||||
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
ebegin "Mounting ${BOOTPART}"
|
||||
mount "${BOOTPART}"; ret=$?
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
load_image() {
|
||||
local ret
|
||||
if [ "${KNAME}" = "-" ]; then
|
||||
ebegin "Disabling kexec"
|
||||
kexec -u; ret=$?
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
fi
|
||||
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
local img= initrd="$(initrd_path)" mounted=false initrdopt=
|
||||
|
||||
if ! img="$(image_path)"; then
|
||||
if mount_boot; then
|
||||
if img="$(image_path)"; then
|
||||
mounted=true
|
||||
initrd="$(initrd_path)"
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
umount "${BOOTPART}"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${INITRD}" ] && \
|
||||
! [ "${BOOTPART}/${INITRD#${BOOTPART}}" = "${initrd}" ]; then
|
||||
eerror "Requested initrd: ${INITRD#${BOOTPART}}"
|
||||
eerror "could not be found"
|
||||
return 1
|
||||
fi
|
||||
|
||||
[ -n "${ROOTPART}" ] || \
|
||||
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
|
||||
|
||||
[ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline"
|
||||
|
||||
[ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}"
|
||||
|
||||
local msg=
|
||||
[ -n "${initrd}" ] && \
|
||||
msg="with ${initrd}"
|
||||
einfo "Using kernel image ${img} ${msg} for kexec"
|
||||
|
||||
ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}"
|
||||
kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
|
||||
local res=$?
|
||||
|
||||
${mounted} && umount "${BOOTPART}"
|
||||
eend ${res}
|
||||
return ${res}
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then
|
||||
local ret=0
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
if mount_boot; then
|
||||
mounted=true
|
||||
fi
|
||||
if ! image_path > /dev/null; then
|
||||
ewarn "Cannot find kernel image!"
|
||||
ewarn "Please make sure a valid kernel image is present before reboot."
|
||||
return 0
|
||||
fi
|
||||
if [ -n "${mounted}" ]; then
|
||||
ebegin "Unmounting ${BOOTPART}"
|
||||
umount "${BOOTPART}"; ret=$?
|
||||
eend ${ret}
|
||||
fi
|
||||
return ${ret}
|
||||
else
|
||||
ebegin "Configuring kexec"
|
||||
load_image
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0
|
||||
|
||||
if ! yesno $RC_REBOOT; then
|
||||
einfo "Not rebooting, so disabling"
|
||||
kexec -u
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ -f /nokexec ]; then
|
||||
einfo "Not using kexec during reboot"
|
||||
rm -f /nokexec
|
||||
kexec -u
|
||||
return 0
|
||||
fi
|
||||
|
||||
ebegin "Configuring kexec"
|
||||
load_image
|
||||
eend $?
|
||||
}
|
@ -1,164 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
}
|
||||
|
||||
image_path() {
|
||||
local x= kver=$(uname -r) karch=$(uname -m)
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
KNAME="${KNAME:-bzImage}"
|
||||
if [ -e "${KNAME}" ]; then
|
||||
echo "${KNAME}"
|
||||
return 0
|
||||
fi
|
||||
for x in "${KNAME#${BOOTPART}}" vmlinuz \
|
||||
bzImage-${kver} vmlinuz-${kver} \
|
||||
kernel-genkernel-${karch}-${kver} \
|
||||
kernel-${kver} kernel-${karch}; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
initrd_path() {
|
||||
local x= kver=$(uname -r) karch=$(uname -m)
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
INITRD="${INITRD:-initrd}"
|
||||
if [ -e "${INITRD}" ]; then
|
||||
echo "${INITRD}"
|
||||
return 0
|
||||
fi
|
||||
for x in "${INITRD#${BOOTPART}}" \
|
||||
initrd.img-${kver} initrd-${kver}.img \
|
||||
initrd-${kver} initramfs-${kver}.img \
|
||||
initramfs-genkernel-${karch}-${kver} ; do
|
||||
if [ -e "${BOOTPART}/${x}" ]; then
|
||||
echo "${BOOTPART}/${x}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
mount_boot(){
|
||||
local ret
|
||||
|
||||
[ "${DONT_MOUNT_BOOT:-no}" = "no" ] || return 1
|
||||
grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1
|
||||
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
ebegin "Mounting ${BOOTPART}"
|
||||
mount "${BOOTPART}"; ret=$?
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
}
|
||||
|
||||
load_image() {
|
||||
local ret
|
||||
if [ "${KNAME}" = "-" ]; then
|
||||
ebegin "Disabling kexec"
|
||||
kexec -u; ret=$?
|
||||
eend ${ret}
|
||||
return ${ret}
|
||||
fi
|
||||
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
local img= initrd="$(initrd_path)" mounted=false initrdopt=
|
||||
|
||||
if ! img="$(image_path)"; then
|
||||
if mount_boot; then
|
||||
if img="$(image_path)"; then
|
||||
mounted=true
|
||||
initrd="$(initrd_path)"
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
umount "${BOOTPART}"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
eerror "No kernel image found in ${BOOTPART}!"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${INITRD}" ] && \
|
||||
! [ "${BOOTPART}/${INITRD#${BOOTPART}}" = "${initrd}" ]; then
|
||||
eerror "Requested initrd: ${INITRD#${BOOTPART}}"
|
||||
eerror "could not be found"
|
||||
return 1
|
||||
fi
|
||||
|
||||
[ -n "${ROOTPART}" ] || \
|
||||
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
|
||||
|
||||
[ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline"
|
||||
|
||||
[ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}"
|
||||
|
||||
local msg=
|
||||
[ -n "${initrd}" ] && \
|
||||
msg="with ${initrd}"
|
||||
einfo "Using kernel image ${img} ${msg} for kexec"
|
||||
|
||||
ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}"
|
||||
kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
|
||||
local res=$?
|
||||
|
||||
${mounted} && umount "${BOOTPART}"
|
||||
eend ${res}
|
||||
return ${res}
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then
|
||||
local ret=0
|
||||
BOOTPART="${BOOTPART:-/boot}"
|
||||
if mount_boot; then
|
||||
mounted=true
|
||||
fi
|
||||
if ! image_path > /dev/null; then
|
||||
ewarn "Cannot find kernel image!"
|
||||
ewarn "Please make sure a valid kernel image is present before reboot."
|
||||
return 0
|
||||
fi
|
||||
if [ -n "${mounted}" ]; then
|
||||
ebegin "Unmounting ${BOOTPART}"
|
||||
umount "${BOOTPART}"; ret=$?
|
||||
eend ${ret}
|
||||
fi
|
||||
return ${ret}
|
||||
else
|
||||
ebegin "Configuring kexec"
|
||||
load_image
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
if ! yesno $RC_REBOOT; then
|
||||
einfo "Not rebooting, so disabling"
|
||||
kexec -u
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ -f /nokexec ]; then
|
||||
einfo "Not using kexec during reboot"
|
||||
rm -f /nokexec
|
||||
kexec -u
|
||||
return 0
|
||||
fi
|
||||
|
||||
[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0
|
||||
|
||||
ebegin "Configuring kexec"
|
||||
load_image
|
||||
eend $?
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=Gracefully restart the box
|
||||
Documentation=man:kexec(8)
|
||||
After=boot.mount
|
||||
Before=shutdown.target umount.target final.target
|
||||
ConditionPathExists=!/nokexec
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
EnvironmentFile=/etc/kexec.conf
|
||||
ExecStart=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS}
|
||||
ExecStop=/usr/sbin/kexec -l /boot/${KNAME} ${KEXEC_OPT_ARGS}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
else
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit autotools-utils linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-2.0.12 kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
insinto /etc/kernel/postinst.d
|
||||
doins "${FILESDIR}"/90_kexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
else
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit autotools-utils linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-2.0.13-r1 kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
insinto /etc/kernel/postinst.d
|
||||
doins "${FILESDIR}"/90_kexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
else
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit autotools-utils linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-2.0.12 kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
insinto /etc/kernel/postinst.d
|
||||
doins "${FILESDIR}"/90_kexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
else
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
inherit autotools-utils linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-2.0.13-r1 kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
insinto /etc/kernel/postinst.d
|
||||
doins "${FILESDIR}"/90_kexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-utils flag-o-matic linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.0-respect-LDFLAGS.patch
|
||||
"${FILESDIR}"/${P}-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${P}-out-of-source.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
# to disable the -fPIE -pie in the hardened compiler
|
||||
if gcc-specs-pie ; then
|
||||
filter-flags -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-${PVR} kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-${PV} kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-utils linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
"${FILESDIR}"/${PN}-2.0.9-hardened.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-2.0.4-r3 kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
insinto /etc/kernel/postinst.d
|
||||
doins "${FILESDIR}"/90_kexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
else
|
||||
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit autotools-utils linux-info systemd
|
||||
|
||||
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
|
||||
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="booke lzma xen zlib"
|
||||
|
||||
REQUIRED_USE="lzma? ( zlib )"
|
||||
|
||||
DEPEND="
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
CONFIG_CHECK="~KEXEC"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
|
||||
export ASFLAGS="${CCASFLAGS}"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_with booke)
|
||||
$(use_with lzma)
|
||||
$(use_with xen)
|
||||
$(use_with zlib)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
dodoc "${FILESDIR}"/README.Gentoo
|
||||
|
||||
newinitd "${FILESDIR}"/kexec.init-2.0.12 kexec
|
||||
newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/kexec.conf
|
||||
|
||||
insinto /etc/kernel/postinst.d
|
||||
doins "${FILESDIR}"/90_kexec
|
||||
|
||||
systemd_dounit "${FILESDIR}"/kexec.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted || has_version sys-apps/systemd; then
|
||||
elog "For systemd support the new config file is"
|
||||
elog " /etc/kexec.conf"
|
||||
elog "Please adopt it to your needs as there is no autoconfig anymore"
|
||||
fi
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="lzma">Enables support for LZMA compressed kernel images</flag>
|
||||
<flag name="booke">Include support for Book-E memory management</flag>
|
||||
<flag name="xen">Enable extended xen support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user