Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37846738
en ru br
ALT Linux repos
S:0.6-alt1
5.0: 0.3-alt1
4.1: 0.1-alt0.M41.2

Group :: System/Configuration/Other
RPM: installer-feature-add-memtest

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

installer-feature-add-memtest-0.6/000075500000000000000000000000001125715043200172055ustar00rootroot00000000000000installer-feature-add-memtest-0.6/Makefile000064400000000000000000000001561125715043200206470ustar00rootroot00000000000000install2_dir = $(datadir)/install2

install:
install -d $(install2_dir)
cp -a postinstall.d $(install2_dir)
installer-feature-add-memtest-0.6/postinstall.d/000075500000000000000000000000001125715043200220035ustar00rootroot00000000000000installer-feature-add-memtest-0.6/postinstall.d/50-add-memtest000075500000000000000000000013121125715043200243540ustar00rootroot00000000000000#!/bin/sh -efu
# if memtest86/memtest86+ is installed as a part of base system,
# its %post is effectively skipped (installkernel won't run with
# DURING_INSTALL set -- which is the case for first and second
# installation stages)
# thanks led@ for the simpler implementation suggestion

. install2-init-functions

# Find most fresh memtest version.
MEMTEST="$(find $destdir/boot/ -mindepth 1 -maxdepth 1 -name 'memtest-*.bin' -printf '%f\n' |sort -u |tail -n1)"
[ -n "$MEMTEST" ] || exit 0

MEMTEST="${MEMTEST#memtest-}"
MEMTEST="${MEMTEST%.bin}"

# Use "memtest" label iff it is not already used,
# to lessen translation fuzz in boot menu.
DURING_INSTALL= exec_chroot installkernel --label memtest -m "$MEMTEST"
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin