Changes between Version 20 and Version 21 of linux/debootstrap-install


Ignore:
Timestamp:
2020-06-16T11:24:31Z (4 years ago)
Author:
root
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • linux/debootstrap-install

    v20 v21  
    3535 http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.123.tar.gz |
    3636 tar xzf -
    37 debootstrap/debootstrap --include locales,linux-image-amd64,grub-pc,openssh-server --arch amd64 buster /mnt http://mirror.yandex.ru/debian
     37debootstrap/debootstrap --include lvm2,locales,linux-image-amd64,grub-pc,openssh-server --arch amd64 buster /mnt http://mirror.yandex.ru/debian
    3838
    3939#/mnt/debootstrap/debootstrap.log
     
    7474echo 'GRUB_CMDLINE_LINUX_DEFAULT="--verbose nosplash"' >>/mnt/etc/default/grub
    7575for d in dev sys proc; do mount -o bind /${d} /mnt/${d}; done
     76chroot /mnt update-initramfs -u
    7677chroot /mnt update-grub2
     78
     79# because https://www.reddit.com/r/Gentoo/comments/bce0d8/long_delay_starting_the_lvm_service_device_not/
     80sed -i 's#md_component_detection = 1#md_component_detection = 0#' /mnt/etc/lvm/lvm.conf
    7781chroot /mnt grub-install --boot-directory=/boot /dev/sda
     82sed -i 's#md_component_detection = 0#md_component_detection = 1#' /mnt/etc/lvm/lvm.conf
    7883chroot /mnt systemctl disable networking
    7984chroot /mnt systemctl enable systemd-networkd
    8085chroot /mnt usermod -p '' root
    81 umount /mnt/proc
    82 mv -f /mnt/usr/sbin/update-initramfs /mnt/usr/sbin/update-initramfs-temp
    83 chroot /mnt apt-get -y install lvm2
    84 mv -f /mnt/usr/sbin/update-initramfs-temp /mnt/usr/sbin/update-initramfs
    85 for d in proc; do mount -o bind /${d} /mnt/${d}; done
    86 chroot /mnt update-initramfs -u
    8786umount -R /mnt
    8887sync