Skip to content

Commit 790087f

Browse files
52-dracut.install: drop copying prebuilt
this is already covered by 10-copy-prebuilt.install for systemd and by the main installkernel script for non-systemd. Signed-off-by: Nowa Ammerlaan <[email protected]>
1 parent 7f19b0d commit 790087f

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

hooks/52-dracut.install

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ main() {
6868
out=dracut-tmp
6969
fi
7070

71-
if [[ -f ${basedir}/${out} ]]; then
72-
einfo "There is an ${out} image at the same place as the kernel, skipping generating a new one"
73-
cp --reflink=auto "${basedir}/${out}" "${INSTALLKERNEL_STAGING_AREA}/${out}" || die
74-
chown root:root "${INSTALLKERNEL_STAGING_AREA}/${out}" || die
75-
chmod 0600 "${INSTALLKERNEL_STAGING_AREA}/${out}" || die
76-
exit 0
77-
fi
78-
7971
initramfs_gen_args+=(
8072
# positional arguments
8173
"${INSTALLKERNEL_STAGING_AREA}/${out}" "${ver}"

hooks/systemd/52-dracut.install

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ else
4646
IMAGE=dracut-tmp
4747
fi
4848

49-
if [[ -f ${BASE_DIR}/${IMAGE} ]]; then
50-
# we found an initrd or uki.efi at the same place as the kernel
51-
# use this and don't generate a new one
52-
[[ ${KERNEL_INSTALL_VERBOSE} == 1 ]] && echo \
53-
"There is an ${IMAGE} image at the same place as the kernel, skipping generating a new one"
54-
cp --reflink=auto "${BASE_DIR}/${IMAGE}" "${KERNEL_INSTALL_STAGING_AREA}/${IMAGE}" \
55-
&& chown root:root "${KERNEL_INSTALL_STAGING_AREA}/${IMAGE}" \
56-
&& chmod 0600 "${KERNEL_INSTALL_STAGING_AREA}/${IMAGE}" \
57-
&& exit 0
58-
fi
59-
6049
INITRAMFS_GEN_ARGS+=(
6150
# positional arguments
6251
"${KERNEL_INSTALL_STAGING_AREA}/${IMAGE}" "${KERNEL_VERSION}"

0 commit comments

Comments
 (0)