#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-378ad31fedc9remotes/github/master
parent
16ee46b2bb
commit
8e89eabc07
|
@ -115,6 +115,20 @@ case "${1,,}" in
|
||||||
OSARCH="amd64"
|
OSARCH="amd64"
|
||||||
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
|
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.
|
host) # ogLive basado en la distribución del servidor.
|
||||||
OSDISTRIB=$(lsb_release -is)
|
OSDISTRIB=$(lsb_release -is)
|
||||||
OSCODENAME=$(lsb_release -cs)
|
OSCODENAME=$(lsb_release -cs)
|
||||||
|
@ -128,7 +142,7 @@ case "${1,,}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
SVNURL="https://opengnsys.es/svn/branches/version1.1/client"
|
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"
|
NAMEISOCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$OSRELEASE-$OSARCH-$VERSIONSVN"
|
||||||
NAMEHOSTCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$VERSIONSVN"
|
NAMEHOSTCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$VERSIONSVN"
|
||||||
export OSDISTRIB OSCODENAME OSRELEASE OSARCH OSHTTP
|
export OSDISTRIB OSCODENAME OSRELEASE OSARCH OSHTTP
|
||||||
|
@ -350,7 +364,7 @@ TIMEMOD=`date +%Y%m%d-%H%M%S`
|
||||||
|
|
||||||
#copiando
|
#copiando
|
||||||
cp /tmp/initrd.img-${OSRELEASE} ${BTTARGETDIR}/oginitrd.img
|
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.
|
#generamos md5 del kernel y del initrd.
|
||||||
DATASUM=`md5sum "${BTTARGETDIR}/oginitrd.img" | cut -f1 -d" "`
|
DATASUM=`md5sum "${BTTARGETDIR}/oginitrd.img" | cut -f1 -d" "`
|
||||||
echo $DATASUM > ${BTTARGETDIR}/oginitrd.img.sum
|
echo $DATASUM > ${BTTARGETDIR}/oginitrd.img.sum
|
||||||
|
|
|
@ -46,7 +46,7 @@ echoAndLog "OpenGnsys CLIENT installation begins at $(date)"
|
||||||
btogGetOsInfo $TYPECLIENT
|
btogGetOsInfo $TYPECLIENT
|
||||||
##########################################################################
|
##########################################################################
|
||||||
echo "FASE 2 - Instalación de software adicional."
|
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
|
apt-get update
|
||||||
[ -n "$(apt-cache search gpxe)" ] && PXEPKG="gpxe"
|
[ -n "$(apt-cache search gpxe)" ] && PXEPKG="gpxe"
|
||||||
[ -n "$(apt-cache search ipxe)" ] && PXEPKG="ipxe"
|
[ -n "$(apt-cache search ipxe)" ] && PXEPKG="ipxe"
|
||||||
|
|
|
@ -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
|
deb-src http://security.debian.org/ OSCODENAME/updates main contrib non-free
|
||||||
|
|
||||||
# DRBL
|
# DRBL
|
||||||
deb http://free.nchc.org.tw/drbl-core drbl stable
|
#deb http://free.nchc.org.tw/drbl-core drbl stable
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ deb-src http://security.ubuntu.com/ubuntu OSCODENAME-security multiverse
|
||||||
|
|
||||||
|
|
||||||
deb http://archive.ubuntu.com/ubuntu OSCODENAME main
|
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://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/freenx-team/ubuntu/ OSCODENAME main
|
||||||
#deb http://ppa.launchpad.net/randomaction/ppa/ubuntu OSCODENAME main
|
#deb http://ppa.launchpad.net/randomaction/ppa/ubuntu OSCODENAME main
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
OpenGnsys Client 1.1.0-rc5
|
OpenGnsys Client 1.1.1-rc1-efi
|
||||||
|
|
|
@ -123,7 +123,7 @@ ogExportVarEnvironment ()
|
||||||
OGPROTOCOL="${ogprotocol:-smb}"
|
OGPROTOCOL="${ogprotocol:-smb}"
|
||||||
[ "$ogunit" != "" ] && OGUNIT="/$ogunit"
|
[ "$ogunit" != "" ] && OGUNIT="/$ogunit"
|
||||||
# OPTIONS Para samba y local (a nfs no le afecta)
|
# 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"
|
DEFOGLIVE="ogclient"
|
||||||
export OGLIVEDIR="${oglivedir:-$DEFOGLIVE}" && echo "OGLIVEDIR=$OGLIVEDIR" >> $CFGINITRD
|
export OGLIVEDIR="${oglivedir:-$DEFOGLIVE}" && echo "OGLIVEDIR=$OGLIVEDIR" >> $CFGINITRD
|
||||||
case "$OGPROTOCOL" in
|
case "$OGPROTOCOL" in
|
||||||
|
|
|
@ -2,14 +2,13 @@
|
||||||
|
|
||||||
OGCLIENTCFG=${OGCLIENTCFG:-/tmp/ogclient.cfg}
|
OGCLIENTCFG=${OGCLIENTCFG:-/tmp/ogclient.cfg}
|
||||||
[ -f $OGCLIENTCFG ] && source $OGCLIENTCFG
|
[ -f $OGCLIENTCFG ] && source $OGCLIENTCFG
|
||||||
OSRELEASE=${OSRELEASE:-$(uname -a | awk '{print $3}')}
|
OSRELEASE=${OSRELEASE:-$(uname -r)}
|
||||||
|
|
||||||
|
|
||||||
rm -f /usr/lib/initramfs-tools/bin/*
|
rm -f /usr/lib/initramfs-tools/bin/*
|
||||||
cp /bin/busybox ./
|
cp /bin/busybox ./
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE
|
mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE
|
||||||
cp /boot/vmlinuz-$OSRELEASE /tmp
|
cp -v /boot/vmlinuz-$OSRELEASE.efi.signed /tmp
|
||||||
|
|
||||||
history -c
|
history -c
|
||||||
|
|
||||||
|
|
|
@ -50,8 +50,8 @@ if [ "$OSRELEASE" == "3.7.6-030706-generic" ]; then
|
||||||
popd
|
popd
|
||||||
rm -fr /tmp/kernel
|
rm -fr /tmp/kernel
|
||||||
else
|
else
|
||||||
# Instalar Kernel del repositorio de paquetes.
|
# Instalar Kernel firmado del repositorio de paquetes.
|
||||||
apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} dkms
|
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
|
apt-get -y --force-yes install linux-image-extra-${OSRELEASE} 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ install python
|
||||||
#install php5-cli # ogLive anterior a Ubuntu 16.04
|
#install php5-cli # ogLive anterior a Ubuntu 16.04
|
||||||
install php-cli # ogLive a partir de Ubuntu 16.04
|
install php-cli # ogLive a partir de Ubuntu 16.04
|
||||||
install dmidecode
|
install dmidecode
|
||||||
install realpath
|
#install realpath # ogLive hasta Ubuntu 16.04
|
||||||
install rpm
|
install rpm
|
||||||
install sqlite3
|
install sqlite3
|
||||||
install os-prober
|
install os-prober
|
||||||
|
|
|
@ -5,7 +5,7 @@ install pxe-kexec
|
||||||
install mbuffer
|
install mbuffer
|
||||||
install parted
|
install parted
|
||||||
install gdisk
|
install gdisk
|
||||||
install drbl-chntpw
|
install chntpw
|
||||||
install clonezilla
|
install clonezilla
|
||||||
install registry-tools
|
install registry-tools
|
||||||
install reglookup
|
install reglookup
|
||||||
|
|
|
@ -3,15 +3,21 @@ install screen
|
||||||
install schroot
|
install schroot
|
||||||
#install grub
|
#install grub
|
||||||
install xmlstarlet
|
install xmlstarlet
|
||||||
|
############# UEFI
|
||||||
install efibootmgr
|
install efibootmgr
|
||||||
############# Requisitos para el cliente 1.1.0 en pruebas compatible con Remote-PC
|
install efitools
|
||||||
|
install refind
|
||||||
|
############# OGAgent
|
||||||
install libxss1
|
install libxss1
|
||||||
install python-prctl
|
install python-prctl
|
||||||
install python-six
|
install python-six
|
||||||
install python-requests
|
install python-requests
|
||||||
##############
|
##############
|
||||||
|
install fusioninventory-agent
|
||||||
|
install nvme-cli
|
||||||
|
install disktype
|
||||||
|
install laptop-detect
|
||||||
#install discover
|
#install discover
|
||||||
#install laptop-detect
|
|
||||||
#install casper
|
#install casper
|
||||||
#install lupin-casper
|
#install lupin-casper
|
||||||
#install xinit
|
#install xinit
|
||||||
|
|
Loading…
Reference in New Issue