#802: Creación de ogLive con Kernel firmado e incluir paquetes para UEFI, inventario y discos NVMe.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5682 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/master
ramon 2018-03-22 13:21:48 +00:00
parent 16ee46b2bb
commit 8e89eabc07
11 changed files with 35 additions and 16 deletions

View File

@ -115,6 +115,20 @@ case "${1,,}" in
OSARCH="amd64"
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
;;
xenial-4.13) # ogLive 1.1.0-rc6 basado en Ubuntu 16.04 y Kernel 4.13.
OSDISTRIB="ubuntu"
OSCODENAME="xenial"
OSRELEASE="4.13.0-17-generic"
OSARCH="amd64"
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
;;
artful) # ogLive 1.1.1-rc1 basado en Ubuntu 17.10 y Kernel 4.13.
OSDISTRIB="ubuntu"
OSCODENAME="artful"
OSRELEASE="4.13.0-37-generic"
OSARCH="amd64"
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
;;
host) # ogLive basado en la distribución del servidor.
OSDISTRIB=$(lsb_release -is)
OSCODENAME=$(lsb_release -cs)
@ -128,7 +142,7 @@ case "${1,,}" in
;;
esac
SVNURL="https://opengnsys.es/svn/branches/version1.1/client"
VERSIONSVN=$(LANG=C svn info $SVNURL | awk '/Rev:/ {print "r"$4}')
VERSIONSVN=$(LC_ALL=C svn info $SVNURL | awk '/Rev:/ {print "r"$4}')
NAMEISOCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$OSRELEASE-$OSARCH-$VERSIONSVN"
NAMEHOSTCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$VERSIONSVN"
export OSDISTRIB OSCODENAME OSRELEASE OSARCH OSHTTP
@ -350,7 +364,7 @@ TIMEMOD=`date +%Y%m%d-%H%M%S`
#copiando
cp /tmp/initrd.img-${OSRELEASE} ${BTTARGETDIR}/oginitrd.img
cp /tmp/vmlinuz-${OSRELEASE} ${BTTARGETDIR}/ogvmlinuz
cp /tmp/vmlinuz-${OSRELEASE}.efi.signed ${BTTARGETDIR}/ogvmlinuz
#generamos md5 del kernel y del initrd.
DATASUM=`md5sum "${BTTARGETDIR}/oginitrd.img" | cut -f1 -d" "`
echo $DATASUM > ${BTTARGETDIR}/oginitrd.img.sum

View File

@ -46,7 +46,7 @@ echoAndLog "OpenGnsys CLIENT installation begins at $(date)"
btogGetOsInfo $TYPECLIENT
##########################################################################
echo "FASE 2 - Instalación de software adicional."
grep "http://free.nchc.org.tw/drbl-core" /etc/apt/sources.list || echo "deb http://free.nchc.org.tw/drbl-core drbl stable" >> /etc/apt/sources.list
#grep "http://free.nchc.org.tw/drbl-core" /etc/apt/sources.list || echo "deb http://free.nchc.org.tw/drbl-core drbl stable" >> /etc/apt/sources.list
apt-get update
[ -n "$(apt-cache search gpxe)" ] && PXEPKG="gpxe"
[ -n "$(apt-cache search ipxe)" ] && PXEPKG="ipxe"

View File

@ -4,5 +4,5 @@ deb http://security.debian.org/ OSCODENAME/updates main contrib non-free
deb-src http://security.debian.org/ OSCODENAME/updates main contrib non-free
# DRBL
deb http://free.nchc.org.tw/drbl-core drbl stable
#deb http://free.nchc.org.tw/drbl-core drbl stable

View File

@ -49,7 +49,7 @@ deb-src http://security.ubuntu.com/ubuntu OSCODENAME-security multiverse
deb http://archive.ubuntu.com/ubuntu OSCODENAME main
deb http://free.nchc.org.tw/drbl-core drbl stable
#deb http://free.nchc.org.tw/drbl-core drbl stable
deb http://free.nchc.org.tw/ubuntu OSCODENAME-security main restricted universe multiverse
#deb http://ppa.launchpad.net/freenx-team/ubuntu/ OSCODENAME main
#deb http://ppa.launchpad.net/randomaction/ppa/ubuntu OSCODENAME main

View File

@ -1 +1 @@
OpenGnsys Client 1.1.0-rc5
OpenGnsys Client 1.1.1-rc1-efi

View File

@ -123,7 +123,7 @@ ogExportVarEnvironment ()
OGPROTOCOL="${ogprotocol:-smb}"
[ "$ogunit" != "" ] && OGUNIT="/$ogunit"
# OPTIONS Para samba y local (a nfs no le afecta)
export OPTIONS=" -o user=opengnsys,pass=og"
export OPTIONS=" -o vers=1.0,sec=ntlm,user=opengnsys,pass=og"
DEFOGLIVE="ogclient"
export OGLIVEDIR="${oglivedir:-$DEFOGLIVE}" && echo "OGLIVEDIR=$OGLIVEDIR" >> $CFGINITRD
case "$OGPROTOCOL" in

View File

@ -2,14 +2,13 @@
OGCLIENTCFG=${OGCLIENTCFG:-/tmp/ogclient.cfg}
[ -f $OGCLIENTCFG ] && source $OGCLIENTCFG
OSRELEASE=${OSRELEASE:-$(uname -a | awk '{print $3}')}
OSRELEASE=${OSRELEASE:-$(uname -r)}
rm -f /usr/lib/initramfs-tools/bin/*
cp /bin/busybox ./
cd /tmp/
mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE
cp /boot/vmlinuz-$OSRELEASE /tmp
cp -v /boot/vmlinuz-$OSRELEASE.efi.signed /tmp
history -c

View File

@ -50,8 +50,8 @@ if [ "$OSRELEASE" == "3.7.6-030706-generic" ]; then
popd
rm -fr /tmp/kernel
else
# Instalar Kernel del repositorio de paquetes.
apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} dkms
# Instalar Kernel firmado del repositorio de paquetes.
apt-get -y --force-yes install linux-signed-image-${OSRELEASE} linux-headers-${OSRELEASE} dkms shim-signed
apt-get -y --force-yes install linux-image-extra-${OSRELEASE} 2>/dev/null
fi

View File

@ -16,7 +16,7 @@ install python
#install php5-cli # ogLive anterior a Ubuntu 16.04
install php-cli # ogLive a partir de Ubuntu 16.04
install dmidecode
install realpath
#install realpath # ogLive hasta Ubuntu 16.04
install rpm
install sqlite3
install os-prober

View File

@ -5,7 +5,7 @@ install pxe-kexec
install mbuffer
install parted
install gdisk
install drbl-chntpw
install chntpw
install clonezilla
install registry-tools
install reglookup

View File

@ -3,15 +3,21 @@ install screen
install schroot
#install grub
install xmlstarlet
############# UEFI
install efibootmgr
############# Requisitos para el cliente 1.1.0 en pruebas compatible con Remote-PC
install efitools
install refind
############# OGAgent
install libxss1
install python-prctl
install python-six
install python-requests
##############
install fusioninventory-agent
install nvme-cli
install disktype
install laptop-detect
#install discover
#install laptop-detect
#install casper
#install lupin-casper
#install xinit