Updated installation
This commit is contained in:
parent
2bb4d99557
commit
d099113d00
2 changed files with 43 additions and 20 deletions
|
@ -3,9 +3,9 @@
|
||||||
To install the Alpine Linux distribution on the system, the encrypted partition and the efi partition have to be mounted to the main system.
|
To install the Alpine Linux distribution on the system, the encrypted partition and the efi partition have to be mounted to the main system.
|
||||||
|
|
||||||
```
|
```
|
||||||
# mount /dev/vg0/alproot /mnt -t ext4
|
# mount /dev/vg0/aroot /mnt -t ext4
|
||||||
# mkdir /mnt/boot/efi -p
|
# mkdir /mnt/boot/efi -p
|
||||||
# mount /dev/disk/by-label/efi /mnt/boot/efi
|
# mount /dev/<disk1> /mnt/boot/efi -t vfat
|
||||||
```
|
```
|
||||||
|
|
||||||
Then set up the base system using `setup-disk`:
|
Then set up the base system using `setup-disk`:
|
||||||
|
@ -22,6 +22,8 @@ Now the other directories are going to be mounted so that it's possible to chroo
|
||||||
# for i in dev proc sys run; do
|
# for i in dev proc sys run; do
|
||||||
> mount --rbind --make-rslave /$i /mnt/$i
|
> mount --rbind --make-rslave /$i /mnt/$i
|
||||||
> done
|
> done
|
||||||
|
# mount /dev/vg0/avar /mnt/var
|
||||||
|
# mount /dev/vg0/atmp /mnt/tmp
|
||||||
# chroot /mnt
|
# chroot /mnt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -36,12 +38,24 @@ The other "setup" scripts can be used to configure key aspects of the system.
|
||||||
# passwd root
|
# passwd root
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Set the `hwclock` to use `localtime` instead of `UTC` in `/etc/conf.d/hwclock`
|
||||||
|
|
||||||
|
```
|
||||||
|
clock="local"
|
||||||
|
clock_hctosys="NO"
|
||||||
|
clock_systohc="NO"
|
||||||
|
```
|
||||||
|
|
||||||
Edit `/etc/fstab` for correct mounts.
|
Edit `/etc/fstab` for correct mounts.
|
||||||
|
|
||||||
```
|
```
|
||||||
tmpfs /tmp tmpfs nosuid,nodev 0 0
|
tmpfs /tmp tmpfs nosuid,nodev 0 0
|
||||||
/dev/vg0/alproot / ext4 defaults,noatime 0 1
|
/dev/vg0/aroot / ext4 defaults,noatime 0 1
|
||||||
/dev/vg0/alphome /home ext4 defaults,noatime 0 1
|
/dev/vg0/ahome /home ext4 defaults,noatime,nodev 0 1
|
||||||
|
/dev/vg0/atmp /tmp ext4 defaults,nodev,nosuid,noexec 0 1
|
||||||
|
/dev/vg0/avar /var ext4 defaults,nodev,nosuid,noexec 0 1
|
||||||
|
/dev/vg0/anix /nix ext4 defaults,nodev,nosuid 0 1
|
||||||
|
proc /proc proc nosuid,nodev,noexec,hidepid=2 0 0
|
||||||
/dev/disk/by-label/efi /boot/efi vfat defaults 0 2
|
/dev/disk/by-label/efi /boot/efi vfat defaults 0 2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -56,7 +70,7 @@ Because of this `mkinitfs` and `grub-efi `will be replaced with `booster` and `s
|
||||||
To configure booster edit `/etc/booster.yaml`:
|
To configure booster edit `/etc/booster.yaml`:
|
||||||
|
|
||||||
```
|
```
|
||||||
busybox: true
|
busybox: false
|
||||||
modules: vfat,nls_cp437,nls_iso8859_1
|
modules: vfat,nls_cp437,nls_iso8859_1
|
||||||
enable_lvm: true
|
enable_lvm: true
|
||||||
```
|
```
|
||||||
|
@ -76,7 +90,7 @@ To:
|
||||||
And configure `/etc/kernel-hooks.d/secureboot.conf` for cmdline and secureboot.
|
And configure `/etc/kernel-hooks.d/secureboot.conf` for cmdline and secureboot.
|
||||||
|
|
||||||
```
|
```
|
||||||
cmdline="rw rd.luks.name=<uuid>=root root=/dev/vg0/alproot modules=ext4 quiet splash rd.lvm.vg=vg0"
|
cmdline="rw rd.luks.name=<uuid>=root root=/dev/vg0/aroot modules=ext4 quiet splash rd.lvm.vg=vg0"
|
||||||
|
|
||||||
signing_cert="/usr/share/secureboot/keys/db/db.pem"
|
signing_cert="/usr/share/secureboot/keys/db/db.pem"
|
||||||
signing_key="/usr/share/secureboot/keys/db/db.key"
|
signing_key="/usr/share/secureboot/keys/db/db.key"
|
||||||
|
@ -111,16 +125,6 @@ Now to see if everything went succesfully run:
|
||||||
|
|
||||||
And it should give no warnings if done properly.
|
And it should give no warnings if done properly.
|
||||||
|
|
||||||
Before finishing up the installation `networkmanager` will be installed for networking.
|
|
||||||
|
|
||||||
```
|
|
||||||
# apk add networkmanager
|
|
||||||
# setup-devd udev
|
|
||||||
# rc-update add networkmanager default
|
|
||||||
```
|
|
||||||
|
|
||||||
Wifi will not yet work but this is will be done later on.
|
|
||||||
|
|
||||||
To make our lives easier we'll also install `gummiboot` as a bootloader.
|
To make our lives easier we'll also install `gummiboot` as a bootloader.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -137,6 +141,19 @@ And also remove some junk left over by grub.
|
||||||
# rm -rf /boot/grub
|
# rm -rf /boot/grub
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> If you have multiple operating systems installed you can change the default OS it loads into with `/boot/efi/loader/loader.conf` and adding the line: `default alpine`.
|
||||||
|
> You can also install `os-prober` to find operating systems and adding them to your bootloader.
|
||||||
|
|
||||||
|
Before finishing up the installation `networkmanager` will be installed for networking.
|
||||||
|
|
||||||
|
```
|
||||||
|
# apk add networkmanager
|
||||||
|
# setup-devd udev
|
||||||
|
# rc-update add networkmanager default
|
||||||
|
```
|
||||||
|
|
||||||
|
Wifi will not yet work but this is will be done later on.
|
||||||
|
|
||||||
Now exit out of the chroot and you should be able to reboot into a working Alpine system.
|
Now exit out of the chroot and you should be able to reboot into a working Alpine system.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -44,8 +44,11 @@ Now to create a new LVM volume group:
|
||||||
To create partitions inside the volume group:
|
To create partitions inside the volume group:
|
||||||
|
|
||||||
```
|
```
|
||||||
# lvcreate --name alproot -L 64G vg0
|
# lvcreate --name aroot -L 16G vg0
|
||||||
# lvcreate --name alphome -l 100%FREE vg0
|
# lvcreate --name avar -L 8G vg0
|
||||||
|
# lvcreate --name anix -L 32G vg0
|
||||||
|
# lvcreate --name atmp -L 16G vg0
|
||||||
|
# lvcreate --name ahome -l 100%FREE vg0
|
||||||
```
|
```
|
||||||
|
|
||||||
Now the home partition fills the entirety of the volume group. These sizes should be changed depending on the needs of the user.
|
Now the home partition fills the entirety of the volume group. These sizes should be changed depending on the needs of the user.
|
||||||
|
@ -53,8 +56,11 @@ Now the home partition fills the entirety of the volume group. These sizes shoul
|
||||||
To create the filesystems on the logical partitions:
|
To create the filesystems on the logical partitions:
|
||||||
|
|
||||||
```
|
```
|
||||||
# mkfs.ext4 /dev/vg0/alproot
|
# mkfs.ext4 /dev/vg0/aroot
|
||||||
# mkfs.ext4 /dev/vg0/alphome
|
# mkfs.ext4 /dev/vg0/avar
|
||||||
|
# mkfs.ext4 /dev/vg0/anix
|
||||||
|
# mkfs.ext4 /dev/vg0/atmp
|
||||||
|
# mkfs.ext4 /dev/vg0/ahome
|
||||||
```
|
```
|
||||||
|
|
||||||
Other filesystems can also be used but `ext4` is the standard for most linux distrobutions.
|
Other filesystems can also be used but `ext4` is the standard for most linux distrobutions.
|
||||||
|
|
Loading…
Reference in a new issue