Commit 6669bf3e authored by picodotdev's avatar picodotdev
Browse files

Use asciinema for record install and log

Fixes #22
parent 9a4207be
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ Currently these scripts are for me but maybe they are useful for you too.
* Graphics controllers (intel, nvidia, amd) with early KMS start
* GRUB, rEFInd, systemd-boot bootloaders
* Script for download installation and recovery scripts and configuration files
* Installation log with all commands executed and output in a file and/or asciinema video
* Wait after installation for a abortable reboot

### Installation
@@ -46,6 +47,8 @@ Currently these scripts are for me but maybe they are useful for you too.
# curl https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash, or with URL shortener curl -sL https://bit.ly/2F3CATp | bash
# # Edit alis.conf and change variables values with your preferences
# vim alis.conf
# # Optional asciinema video
# ./alis-asciinema.sh
# ./alis.sh
```

@@ -57,6 +60,8 @@ Currently these scripts are for me but maybe they are useful for you too.
# curl https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash, or with URL shortener curl -sL https://bit.ly/2F3CATp | bash
# # Edit alis-recovery.conf and change variables values with your last installation with alis
# vim alis-recovery.conf
# # Optional asciinema video
# ./alis-asciinema-recovery.sh
# ./alis-recovery.sh
```

alis-asciinema.sh

0 → 100644
+12 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
set -e

# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2018 picodotdev

wget https://github.com/asciinema/asciinema/archive/v2.0.1.zip -O asciinema-2.0.1.zip
bsdtar -x -f asciinema-2.0.1.zip
cp -r asciinema-2.0.1/* .
rm -f alis.asciinema
python3 -m asciinema rec -i 5 ~/alis.asciinema
 No newline at end of file

alis-reboot.sh

0 → 100644
+16 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
set -e

# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2018 picodotdev

source alis.conf

if [ -f alis.asciinema ]; then
    mkdir -p /mnt/var/log
    cp alis.asciinema /mnt/var/log/alis.asciinema
fi

umount -R /mnt
reboot
 No newline at end of file
+12 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
set -e

# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2018 picodotdev

wget https://github.com/asciinema/asciinema/archive/v2.0.1.zip -O asciinema-2.0.1.zip
bsdtar -x -f asciinema-2.0.1.zip
cp -r asciinema-2.0.1/* .
rm -f alis.asciinema
python3 -m asciinema rec -i 5 ~/alis-recovery.asciinema
 No newline at end of file
+16 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
set -e

# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2018 picodotdev

source alis.conf

if [ -f alis-recovery.asciinema ]; then
    mkdir -p /mnt/var/log
    cp alis-recovery.asciinema /mnt/var/log/alis-recovery.asciinema
fi

umount -R /mnt
reboot
 No newline at end of file
Loading