X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=local%2Fboot-configure;h=ce32562c71069b756e46949df8b1c4e85253c47d;hp=a0d5ae27a685ca08b4a0be7edc000d514451fa44;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/local/boot-configure b/local/boot-configure index a0d5ae2..ce32562 100755 --- a/local/boot-configure +++ b/local/boot-configure @@ -7,21 +7,21 @@ sudo debconf-set-selections <<-EOF EOF "$tool"/local/apt-get-install grub-pc sudo install -d -m 644 -o root -g root /boot/grub -"$tool"/local/apt-get-install linux-image-$vm_arch +"$tool"/local/apt-get-install linux-image-$local_arch sudo install -m 644 -o root -g root /dev/stdin \ /etc/default/grub <<-EOF GRUB_DEFAULT=0 GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=\`lsb_release -i -s 2> /dev/null || echo Debian\` GRUB_CMDLINE_LINUX_DEFAULT="quiet" - GRUB_CMDLINE_LINUX="vt.default_utf8=1 rootfstype=ext4 loglevel=5 console=hvc0 ip=$vm_ipv4::$vm_ipv4:255.255.255.254:$vm:eth0:off resume=/dev/mapper/${vm}_swap_deciphered" + GRUB_CMDLINE_LINUX="vt.default_utf8=1 rootfstype=ext4 loglevel=5 console=hvc0 ip=$local_ipv4::$local_ipv4:255.255.255.254:$vm:eth0:off resume=/dev/mapper/${vm}_swap_deciphered" GRUB_DISABLE_RECOVERY="true" #GRUB_PRELOAD_MODULES="lvm" EOF sudo install -m 644 -o root -g root /dev/stdin \ /boot/grub/device.map <<-EOF (hd0) /dev/xvda - (hd0) /dev/mapper/domU-$(printf %s $vm_fqdn-disk | sed -e 's/-/--/g') + (hd0) /dev/mapper/domU-$(printf %s $local_fqdn-disk | sed -e 's/-/--/g') EOF sudo update-grub2 # NOTE: prend en compte /boot/grub/device.map "$tool"/local/initramfs-configure