memtest86-efi: add runHook preInstall and postInstall
This commit is contained in:
@@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
# memtest86 is distributed as a bootable USB image. It contains the actual
|
# memtest86 is distributed as a bootable USB image. It contains the actual
|
||||||
# memtest86 EFI app.
|
# memtest86 EFI app.
|
||||||
#
|
#
|
||||||
@@ -50,6 +52,8 @@ stdenv.mkDerivation rec {
|
|||||||
')
|
')
|
||||||
mkdir $out
|
mkdir $out
|
||||||
mcopy -vsi $IMG@@$ESP_OFFSET ::'/EFI/BOOT/*' $out/
|
mcopy -vsi $IMG@@$ESP_OFFSET ::'/EFI/BOOT/*' $out/
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user