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
Line | |
---|
1 | #!/bin/bash |
---|
2 | export 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 |
---|
4 | export OSCODENAME=$(cat /etc/lsb-release | grep CODENAME | awk -F= '{print $NF}') |
---|
5 | export OSRELEASE=$(uname -a | awk '{print $3}') |
---|
6 | uname -a | grep x86_64 > /dev/null && export OSARCH=amd64 || export OSARCH=i386 |
---|
7 | export OSHTTP="http://es.archive.ubuntu.com/ubuntu/" |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | cd /usr/lib/initramfs-tools/bin/ |
---|
12 | rm * |
---|
13 | cp /bin/busybox ./ |
---|
14 | cd /tmp/ |
---|
15 | mkinitramfs -o /tmp/initrd.img-$OSRELEASE -v $OSRELEASE |
---|
16 | cp /boot/vmlinuz-$OSRELEASE /tmp |
---|
Note: See
TracBrowser
for help on using the repository browser.