source: client/boot-tools/old/clientstructure/root/GenerateInitrd.generic.sh @ f8b1b41

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since f8b1b41 was 39bca9b, checked in by adv <adv@…>, 14 years ago

branch version 1.0 #420 separando proceso de creacion anterior

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2321 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 597 bytes
Line 
1#!/bin/bash
2export OSDISTRIB=$(lsb_release -i | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null
3#OSCODENAME=$(lsb_release -c | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null
4export OSCODENAME=$(cat /etc/lsb-release | grep CODENAME | awk -F= '{print $NF}')
5export OSRELEASE=$(uname -a | awk '{print $3}')
6uname -a | grep x86_64 > /dev/null  &&  export OSARCH=amd64 || export OSARCH=i386
7export OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
8
9
10
11cd /usr/lib/initramfs-tools/bin/
12rm *
13cp /bin/busybox ./
14cd /tmp/
15mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE
16cp /boot/vmlinuz-$OSRELEASE /tmp
Note: See TracBrowser for help on using the repository browser.