#802: Cambios para crear cliente ogLive basado en Ubuntu 18.04 con Kernel 4.15

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5698 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/main
ramon 2018-04-05 11:01:43 +00:00
parent 8e89eabc07
commit 9d8fe69c7e
7 changed files with 41 additions and 38 deletions

View File

@ -122,10 +122,10 @@ case "${1,,}" in
OSARCH="amd64" OSARCH="amd64"
OSHTTP="http://es.archive.ubuntu.com/ubuntu/" OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
;; ;;
artful) # ogLive 1.1.1-rc1 basado en Ubuntu 17.10 y Kernel 4.13. bionic) # ogLive 1.1.1-rc1 basado en Ubuntu 18.04 y Kernel 4.15.
OSDISTRIB="ubuntu" OSDISTRIB="ubuntu"
OSCODENAME="artful" OSCODENAME="bionic"
OSRELEASE="4.13.0-37-generic" OSRELEASE="4.15.0-13-generic"
OSARCH="amd64" OSARCH="amd64"
OSHTTP="http://es.archive.ubuntu.com/ubuntu/" OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
;; ;;

View File

@ -546,7 +546,7 @@ then
fi fi
# Realizamos la union entre el ogliveram(initrd) y el ogliverootfs(ogclient.sqfs) # Realizamos la union entre el ogliveram(initrd) y el ogliverootfs(ogclient.sqfs)
# Nota: el orden es muy importante para evitar errores de montaje. # Nota: el orden es muy importante para evitar errores de montaje.
[ -d $DSTOGLIVE/lib32 ] && LIBS=lib32 [ -d $OGLIVEROOTFS/lib32 ] && LIBS=lib32
for i in bin sbin lib $LIBS etc var usr root boot; do for i in bin sbin lib $LIBS etc var usr root boot; do
ogUnionLiveDir $i ogUnionLiveDir $i
done done

View File

@ -1,6 +1,13 @@
#!/bin/bash #!/bin/bash
dpkg-reconfigure console-data cat << EOT | debconf-set-selections --
dpkg-reconfigure console-setup console-data console-data/keymap/full select es
dpkg-reconfigure locales console-data console-data/keymap/policy select Select keymap from full list
console-setup console-setup/charmap47 select UTF-8
console-setup console-setup/codeset47 select . Combined - Latin; Slavic Cyrillic; Greek
console-setup console-setup/fontface47 select VGA
console-setup console-setup/fontsize-fb47 select 8x16
console-setup console-setup/fontsize-text47 select 8x16
EOT
dpkg-reconfigure console-data console-setup locales
history -c history -c

View File

@ -5,8 +5,8 @@ OGCLIENTCFG=${OGCLIENTCFG:-/tmp/ogclient.cfg}
OSRELEASE=${OSRELEASE:-$(uname -r)} OSRELEASE=${OSRELEASE:-$(uname -r)}
rm -f /usr/lib/initramfs-tools/bin/* rm -f /usr/lib/initramfs-tools/bin/*
cp /bin/busybox ./ cp /bin/busybox /usr/lib/initramfs-tools/bin
cd /tmp/ cd /tmp
mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE
cp -v /boot/vmlinuz-$OSRELEASE.efi.signed /tmp cp -v /boot/vmlinuz-$OSRELEASE.efi.signed /tmp

View File

@ -19,29 +19,25 @@ which ms-sys || ms-sys install &>/dev/null
echo "spartlnx" echo "spartlnx"
which spartlnx.run || $(wget http://damien.guibouret.free.fr/savepart.zip &>/dev/null; unzip -o savepart.zip -d /sbin/) which spartlnx.run || $(wget http://damien.guibouret.free.fr/savepart.zip &>/dev/null; unzip -o savepart.zip -d /sbin/)
echo "busybox"
apt-get install -y busybox-static
cp /bin/busybox /bin/busyboxNEW
/bin/busyboxNEW
# Mach-O loader for Linux # Mach-O loader for Linux
echo "maloader" #echo "maloader"
wget https://github.com/shinh/maloader/archive/master.zip #apt-get install -y uuid-dev lib64z1 lib32z1
unzip master.zip #wget https://github.com/shinh/maloader/archive/master.zip
cd maloader-master #unzip master.zip
perl -pi -le 'print "#include <unistd.h>" if $. == 45' ld-mac.cc #cd maloader-master
if [ "$(arch)" == "x86_64" ]; then #perl -pi -le 'print "#include <unistd.h>" if $. == 45' ld-mac.cc
ln -fs /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so 2>/dev/null #if [ "$(arch)" == "x86_64" ]; then
make release # ln -fs /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so 2>/dev/null
else # make release
ln -fs /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so 2>/dev/null #else
make clean # ln -fs /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so 2>/dev/null
make all BITS=32 # make clean
fi # make all BITS=32
cp -va ld-mac /usr/bin #fi
cp -va libmac.so /usr/lib #cp -va ld-mac /usr/bin
cd .. #cp -va libmac.so /usr/lib
rm -fr master.zip maloader-master #cd ..
#rm -fr master.zip maloader-master
popd popd
export LANGUAGE=$OLDLANGUAGE export LANGUAGE=$OLDLANGUAGE

View File

@ -57,12 +57,12 @@ fi
# Valores para paquetes interactivos. # Valores para paquetes interactivos.
cat << EOT | debconf-set-selections -- cat << EOT | debconf-set-selections --
console-setup console-setup/charmap47 select UTF-8 console-data console-data/keymap/full select es
console-setup console-setup/codeset47 select . Combined - Latin; Slavic Cyrillic; Greek console-data console-data/keymap/policy select Select keymap from full list
console-setup console-setup/fontface47 select TerminusBold
console-setup console-setup/fontsize-fb47 select 8x16
davfs2 davfs2/suid_file boolean false davfs2 davfs2/suid_file boolean false
kexec-tools kexec-tools/load_kexec boolean true kexec-tools kexec-tools/load_kexec boolean true
openssh-server openssh-server/permit-root-login boolean true
refind refind/install_to_esp boolean false
EOT EOT
apt-get -y install sshfs console-data kexec-tools davfs2 $PKGS32 apt-get -y install sshfs console-data kexec-tools davfs2 $PKGS32

View File

@ -4,8 +4,7 @@ install man-db
install fbset install fbset
install gdebi-core install gdebi-core
install bash-static install bash-static
#La gestion del busybox-static (incompatibilidades reboot y poweroff) en boottoolSoftwareCompile.sh install busybox-static
#install busybox-static
install console-data install console-data
install locales install locales
install lshw install lshw
@ -18,6 +17,7 @@ install php-cli # ogLive a partir de Ubuntu 16.04
install dmidecode install dmidecode
#install realpath # ogLive hasta Ubuntu 16.04 #install realpath # ogLive hasta Ubuntu 16.04
install rpm install rpm
#install zypper # PROBAR
install sqlite3 install sqlite3
install os-prober install os-prober
install moreutils install moreutils