Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37816802
en ru br
ALT Linux repositórios
S:0.6-alt1
5.0: 0.3-alt1
4.1: 0.1-alt0.M41.2

Group :: Sistema/Configurações/Rede
RPM: installer-feature-add-memtest

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

installer-feature-add-memtest-0.1/000075500000000000000000000000001107663265600172145ustar00rootroot00000000000000installer-feature-add-memtest-0.1/Makefile000064400000000000000000000004121107663265600206510ustar00rootroot00000000000000install2_dir=$(datadir)/install2

install:
install -d $(install2_dir)
[ -d initinstall.d ] && cp -a initinstall.d $(install2_dir) ||:
[ -d preinstall.d ] && cp -a preinstall.d $(install2_dir) ||:
[ -d postinstall.d ] && cp -a postinstall.d $(install2_dir) ||:
installer-feature-add-memtest-0.1/postinstall.d/000075500000000000000000000000001107663265600220125ustar00rootroot00000000000000installer-feature-add-memtest-0.1/postinstall.d/50-add-memtest000075500000000000000000000013451107663265600243710ustar00rootroot00000000000000#!/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

MEMTEST="`find $destdir/boot/ -maxdepth 1 -name 'memtest-*.bin' | tail -1`"
[ -n "$MEMTEST" ] || exit 0

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

exec_chroot installkernel -n -m "$MEMTEST_VER"
# REQUIRES: only ONE entry with memtest86-xxx, otherwise lilo fail for duplicated labels!
exec_chroot sed -i -e 's/^[\t\ ]*label="memtest86.*"/\tlabel="memtest"/' /etc/lilo.conf
exec_chroot /sbin/lilo
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009