Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alaprendszer könyvtárak létrehozása, target könyvtárba....
- apt -y install debootstrap
- debootstrap --include=zfsutils-linux bionic /target
- echo asztalos01 > /target/etc/hostname
- echo "127.0.1.1 asztalos01.matrixhome.lan asztalos01" >> /target/etc/hosts
- cat < /target/etc/netplan/00-lan-config.yaml
- # This file is generated from information provided by
- # the datasource. Changes to it will not persist across an instance.
- # To disable cloud-init's network configuration capabilities, write a file
- # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
- # network: {config: disabled}
- network:
- ethernets:
- enp2s0:
- dhcp4: true
- version: 2
- EOF
- mount --rbind /dev /target/dev
- mount --rbind /proc /target/proc
- mount --rbind /sys /target/sys
- chroot /target /bin/bash
- cat <> /etc/apt/sources.list
- #deb http://archive.ubuntu.com/ubuntu bionic main
- deb http://archive.ubuntu.com/ubuntu bionic-updates main
- deb http://security.ubuntu.com/ubuntu bionic-security main
- deb http://archive.ubuntu.com/ubuntu/ bionic universe
- deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
- deb http://security.ubuntu.com/ubuntu bionic-security universe
- EOF
- apt -y install linux-image-generic
- apt -y install gdisk dosfstools zfs-initramfs
- mkdosfs -F 32 -n EFI-SDA1 /dev/sda1
- mkdosfs -F 32 -n EFI-SDB1 /dev/sdb1
- mkdosfs -F 32 -n EFI-SDC1 /dev/sdc1
- mkdir /boot/efi
- echo PARTUUID=$(blkid -s PARTUUID -o value /dev/disk/by-partlabel/sda1-EFI) /boot/efi vfat defaults 0 1 >> /etc/fstab
- mount /boot/efi
- apt -y install grub-efi
- grub-probe /
- update-initramfs -u -k all
- update-grub
- grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck --no-floppy
- echo '\EFI\ubuntu\grubx64.efi' > /boot/efi/startup.nsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement