Changes between Version 6 and Version 7 of linux/debootstrap-install


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

--

Legend:

Unmodified
Added
Removed
Modified
  • linux/debootstrap-install

    v6 v7  
    4545EOF
    4646mkdir -vp /mnt/etc/network/interfaces.d/ /mnt/root/.ssh/ /mnt/etc/default/grub.d/
    47 cat <<EOF >/mnt/etc/network/interfaces
    48 source /etc/network/interfaces.d/*
    49 auto lo
    50 iface lo inet loopback
    51 auto eth0
    52 iface eth0 inet static
    53  address 192.168.79.23
    54  netmask 24
    55  gateway 192.168.79.2
    56 EOF
    57 cp -v ~/.ssh/authorized_keys /mnt/root/.ssh/
    5847echo xpsvic > /mnt/etc/hostname
    5948cat <<EOF > /mnt/etc/default/grub.d/net-ifnames.cfg
     
    7564echo 'en_US.UTF-8 UTF-8' > /mnt/etc/locale.gen
    7665chroot /mnt locale-gen
    77 
    7866chroot /mnt hostname -F /etc/hostname
    7967export DEBIAN_FRONTEND=noninteractive
     
    9381
    9482chroot /mnt grub-install --boot-directory=/boot /dev/sda
    95 
    9683umount /mnt/proc
    9784chroot /mnt apt-get -y install lvm2