update scripts for 9.1
This commit is contained in:
19
installer.sh
19
installer.sh
@@ -1,11 +1,12 @@
|
||||
#!/bin/bash
|
||||
#-----------------------------------------------------------------------------
|
||||
# Title: installer.sh
|
||||
# Date: 2019-05-22
|
||||
# Version: 1.0
|
||||
# Author: baho-utot@columbus.rr.com
|
||||
# Date: 2020-05-31
|
||||
# Version: 2.0
|
||||
# Author: chris@cromer.cl
|
||||
# Options:
|
||||
#-----------------------------------------------------------------------------
|
||||
# Copyright 2020 Chris Cromer
|
||||
# Copyright 2019 Baho Utot
|
||||
#-----------------------------------------------------------------------------
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
@@ -24,18 +25,16 @@
|
||||
# This script installs LFS base rpms to a partition mounted at /mnt
|
||||
# the partition should be a new/clean partition as it will be overwritten
|
||||
#-----------------------------------------------------------------------------
|
||||
# Dedicated to Elizabeth my cat of 20 years, Euthanasia on 2019-05-16
|
||||
#-----------------------------------------------------------------------------
|
||||
set -o errexit # exit if error...insurance ;)
|
||||
set -o nounset # exit if variable not initalized
|
||||
set +h # disable hashall
|
||||
#-----------------------------------------------------------------------------
|
||||
PRGNAME=${0##*/} # script name minus the path
|
||||
REPOPATH="RPMS/x86_64" # path to the binary rpms
|
||||
ROOTPATH="/mnt" # path to install filesystem
|
||||
ROOTPATH="/mnt" # path to install filesystem
|
||||
BASE="SPECS/base.spec" # filespec SPECS/base.spec
|
||||
DBPATH="/var/lib/rpm" # path to the rpm database rel to ROOTPATH
|
||||
LIST="" # list of packages to install
|
||||
LIST="" # list of packages to install
|
||||
#-----------------------------------------------------------------------------
|
||||
function _die() {
|
||||
local _red="\\033[1;31m"
|
||||
@@ -120,9 +119,9 @@ cat > ${ROOTPATH}/tmp/script.sh <<- EOF
|
||||
done
|
||||
popd
|
||||
pushd /boot
|
||||
/usr/bin/touch initrd.img-4.20.12
|
||||
/bin/rm initrd.img-4.20.12
|
||||
/sbin/mkinitramfs 4.20.12
|
||||
/usr/bin/touch initrd.img-5.5.3
|
||||
/bin/rm initrd.img-5.5.3
|
||||
/sbin/mkinitramfs 5.5.3
|
||||
/usr/bin/vim /etc/sysconfig/clock
|
||||
/usr/bin/vim /etc/passwd
|
||||
/usr/bin/vim /etc/hosts
|
||||
|
Reference in New Issue
Block a user