Changes between Version 20 and Version 21 of linux/debootstrap-install
- Timestamp:
- 2020-06-16T11:24:31Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/debootstrap-install
v20 v21 35 35 http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.123.tar.gz | 36 36 tar xzf - 37 debootstrap/debootstrap --include l ocales,linux-image-amd64,grub-pc,openssh-server --arch amd64 buster /mnt http://mirror.yandex.ru/debian37 debootstrap/debootstrap --include lvm2,locales,linux-image-amd64,grub-pc,openssh-server --arch amd64 buster /mnt http://mirror.yandex.ru/debian 38 38 39 39 #/mnt/debootstrap/debootstrap.log … … 74 74 echo 'GRUB_CMDLINE_LINUX_DEFAULT="--verbose nosplash"' >>/mnt/etc/default/grub 75 75 for d in dev sys proc; do mount -o bind /${d} /mnt/${d}; done 76 chroot /mnt update-initramfs -u 76 77 chroot /mnt update-grub2 78 79 # because https://www.reddit.com/r/Gentoo/comments/bce0d8/long_delay_starting_the_lvm_service_device_not/ 80 sed -i 's#md_component_detection = 1#md_component_detection = 0#' /mnt/etc/lvm/lvm.conf 77 81 chroot /mnt grub-install --boot-directory=/boot /dev/sda 82 sed -i 's#md_component_detection = 0#md_component_detection = 1#' /mnt/etc/lvm/lvm.conf 78 83 chroot /mnt systemctl disable networking 79 84 chroot /mnt systemctl enable systemd-networkd 80 85 chroot /mnt usermod -p '' root 81 umount /mnt/proc82 mv -f /mnt/usr/sbin/update-initramfs /mnt/usr/sbin/update-initramfs-temp83 chroot /mnt apt-get -y install lvm284 mv -f /mnt/usr/sbin/update-initramfs-temp /mnt/usr/sbin/update-initramfs85 for d in proc; do mount -o bind /${d} /mnt/${d}; done86 chroot /mnt update-initramfs -u87 86 umount -R /mnt 88 87 sync