X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-instance-kernel.sh;h=0af3fb6ef2c2ebeb2492eede12d34042833450e9;hb=0ef451470bc9a108b6836e05abaeec44a3adec75;hp=ee740da3ef4333d2bde03e4fa2b6f2b9e1148ff5;hpb=47b641a9d1119c9a3ee664b27d675f8ccdc4ca51;p=gnt-info diff --git a/gnt-instance-kernel.sh b/gnt-instance-kernel.sh index ee740da..0af3fb6 100755 --- a/gnt-instance-kernel.sh +++ b/gnt-instance-kernel.sh @@ -1,8 +1,16 @@ #!/bin/sh -xe -KERNEL=3.16 +test -z "$KERNEL" || KERNEL=4.9 #KERNEL=3.10 #KERNEL=3.2 -gnt-instance modify -H initrd_path=/boot/initrd.img-$KERNEL-kvmU,kernel_path=/boot/vmlinuz-$KERNEL-kvmU $1 +ver=$( ls /boot/config*-4.9* | sort --field-separator="-" --key=5 --reverse | head -1 | cut -d- -f2- ) + +tar cfvpz /tmp/$ver.tar.gz /lib/modules/$ver +ls -al /tmp/$ver.tar.gz + +#gnt-instance modify -H initrd_path=/boot/initrd.img-$ver,kernel_path=/boot/vmlinuz-$ver $1 +#gnt-instance modify -H kernel_args="ro net.ifnames=0 biosdevname=0" influx # keep old eth0 names +gnt-instance modify -H initrd_path=/boot/initrd.img-$ver,kernel_path=/boot/vmlinuz-$ver,kernel_args="ro net.ifnames=0 biosdevname=0" $1 +