Bump Alpine version to 3.8

This commit is contained in:
Disassembler 2018-07-09 15:14:44 +02:00
parent 85227cd335
commit e403df0094
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
6 changed files with 15 additions and 10 deletions

View File

@ -5,9 +5,11 @@ This is the main repository containing all installation scripts, configuration a
- **CPU:** 1 processor, 2 cores - **CPU:** 1 processor, 2 cores
- **Hard Disk:** SCSI, 60 GB - **Hard Disk:** SCSI, 60 GB
In case you're setting up a VMWare virtual machine, select OS type *Other Linux 3.x kernel 64-bit* and after you create the VM, manually edit the `*.vmx` file using a text editor and set there `mem.hotadd = "FALSE"`. Failing to do so will result in system unable to boot. Other hypervizors don't need this adjustment.
## Operating system installation ## Operating system installation
Download **Alpine Virtual 3.7.0 x86_64** from <https://alpinelinux.org/downloads/> and boot from it. At the login prompt, use the root user without password to log in. Download **Alpine Virtual 3.8.0 x86_64** from <https://alpinelinux.org/downloads/> and boot from it. At the login prompt, use the root user without password to log in.
``` ```
# Set up interfaces (leave the default choices) # Set up interfaces (leave the default choices)

View File

@ -1,13 +1,16 @@
#!/bin/sh #!/bin/sh
# Prerequisites # Based on
# https://wiki.alpinelinux.org/wiki/LVM_on_LUKS
# Prerequisites for this script
# setup-interfaces # setup-interfaces
# ifup eth0 # ifup eth0
# Set up repositories # Set up repositories
cat <<EOF >/etc/apk/repositories cat <<EOF >/etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/v3.7/main http://dl-cdn.alpinelinux.org/alpine/v3.8/main
http://dl-cdn.alpinelinux.org/alpine/v3.7/community http://dl-cdn.alpinelinux.org/alpine/v3.8/community
#http://dl-cdn.alpinelinux.org/alpine/edge/main #http://dl-cdn.alpinelinux.org/alpine/edge/main
#http://dl-cdn.alpinelinux.org/alpine/edge/community #http://dl-cdn.alpinelinux.org/alpine/edge/community
#http://dl-cdn.alpinelinux.org/alpine/edge/testing #http://dl-cdn.alpinelinux.org/alpine/edge/testing
@ -60,7 +63,7 @@ mount -t ext4 /dev/sda1 /mnt/boot
setup-disk -m sys /mnt setup-disk -m sys /mnt
# Update boot-time volume information # Update boot-time volume information
BOOT_UUID=$(blkid /dev/sda1 | awk '{print $2}' | tr -d '"') BOOT_UUID=$(blkid /dev/sda1 | cut -d' ' -f2 | tr -d '"')
cat <<EOF >/mnt/etc/fstab cat <<EOF >/mnt/etc/fstab
/dev/vg0/root / ext4 rw,noatime,data=ordered 0 1 /dev/vg0/root / ext4 rw,noatime,data=ordered 0 1
${BOOT_UUID} /boot ext4 rw,noatime,data=ordered 0 2 ${BOOT_UUID} /boot ext4 rw,noatime,data=ordered 0 2
@ -72,7 +75,7 @@ echo "system /dev/sda2 none luks" >/mnt/etc/crypttab
sed -i 's/lvm/lvm cryptsetup/' /mnt/etc/mkinitfs/mkinitfs.conf sed -i 's/lvm/lvm cryptsetup/' /mnt/etc/mkinitfs/mkinitfs.conf
mkinitfs -c /mnt/etc/mkinitfs/mkinitfs.conf -b /mnt $(ls /mnt/lib/modules) mkinitfs -c /mnt/etc/mkinitfs/mkinitfs.conf -b /mnt $(ls /mnt/lib/modules)
# Update extlinux # Update extlinux (ignore the errors)
sed -i 's/rootfstype=ext4/rootfstype=ext4 cryptroot=\/dev\/sda2 cryptdm=system/' /mnt/etc/update-extlinux.conf sed -i 's/rootfstype=ext4/rootfstype=ext4 cryptroot=\/dev\/sda2 cryptdm=system/' /mnt/etc/update-extlinux.conf
chroot /mnt update-extlinux chroot /mnt update-extlinux

View File

@ -1,4 +1,4 @@
FROM alpine:3.7 FROM alpine:3.8
MAINTAINER Disassembler <disassembler@dasm.cz> MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \ RUN \

View File

@ -1,4 +1,4 @@
FROM alpine:3.7 FROM alpine:3.8
MAINTAINER Disassembler <disassembler@dasm.cz> MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \ RUN \

View File

@ -1,4 +1,4 @@
FROM alpine:3.7 FROM alpine:3.8
MAINTAINER Disassembler <disassembler@dasm.cz> MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \ RUN \

View File

@ -1,4 +1,4 @@
FROM alpine:3.7 FROM alpine:3.8
MAINTAINER Disassembler <disassembler@dasm.cz> MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \ RUN \