summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpico.dev <pico.dev@gmail.com>2017-07-24 02:17:49 +0200
committerpico.dev <pico.dev@gmail.com>2017-07-24 02:17:49 +0200
commit726e5fa961e9ab931c6f713d4f16f3a519aa3def (patch)
tree22f776eca6a25b3b0ff5834981775b61d592e6f0
parente56b858a51635eafe0457935584a3bd5fe101c19 (diff)
Update README.md usage and fix xorg packages
-rw-r--r--README.md17
-rw-r--r--alis.sh50
2 files changed, 35 insertions, 32 deletions
diff --git a/README.md b/README.md
index d373f30..3c28fe5 100644
--- a/README.md
+++ b/README.md
@@ -33,14 +33,17 @@ You can test it in a VirtualBox virtual machine.
### Usage
-* Start the system with lastest Arch Linux installation media
-* wget -O alis.conf https://raw.githubusercontent.com/picodotdev/alis/master/alis.conf
-* nano alis.conf
-* Edit alis.conf and change variables values with your preferences
-* wget -O alis.sh https://raw.githubusercontent.com/picodotdev/alis/master/alis.sh
-* chmod +x alis.sh
-* ./alis.sh
+\# Start the system with lastest Arch Linux installation media
+$ loadkeys [keymap]
+$ wget https://raw.githubusercontent.com/picodotdev/alis/master/alis.conf
+$ nano alis.conf
+\# Edit alis.conf and change variables values with your preferences
+$ wget https://raw.githubusercontent.com/picodotdev/alis/master/alis.sh
+$ chmod +x alis.sh
+$ ./alis.sh
### TODO
* Custom shell interpreter
+* Custom kernel compression
+* Install packages after desktop environment
diff --git a/alis.sh b/alis.sh
index 0083e3a..1119301 100644
--- a/alis.sh
+++ b/alis.sh
@@ -327,29 +327,6 @@ function virtualbox() {
fi
}
-function packages() {
- if [ "$FILE_SYSTEM_TYPE" == "btrfs" ]; then
- arch-chroot /mnt pacman -Sy --noconfirm btrfs-progs
- fi
-
- if [ "$YAOURT" == "true" -o -n "$PACKAGES_YAOURT" ]; then
- echo "" >> /mnt/etc/pacman.conf
- echo "[archlinuxfr]" >> /mnt/etc/pacman.conf
- echo "SigLevel=Optional TrustAll" >> /mnt/etc/pacman.conf
- echo "Server=http://repo.archlinux.fr/\$arch" >> /mnt/etc/pacman.conf
-
- arch-chroot /mnt pacman -Sy --noconfirm yaourt
- fi
-
- if [ -n "$PACKAGES_PACMAN" ]; then
- arch-chroot /mnt pacman -Sy --noconfirm --needed $PACKAGES_PACMAN
- fi
-
- if [ -n "$PACKAGES_YAOURT" ]; then
- arch-chroot /mnt yaourt -S --noconfirm --needed $PACKAGES_YAOURT
- fi
-}
-
function mkinitcpio() {
if [ "$LVM" == "true" -a -n "$PARTITION_ROOT_ENCRYPTION_PASSWORD" ]; then
arch-chroot /mnt sed -i 's/ filesystems / lvm2 encrypt keymap filesystems /' /etc/mkinitcpio.conf
@@ -428,7 +405,7 @@ function desktop_environment() {
;;
esac
- arch-chroot /mnt pacman -Sy --noconfirm xorg-server xorg-server-utils xorg-apps $DISPLAY_DRIVER mesa $MESA_LIBGL
+ arch-chroot /mnt pacman -Sy --noconfirm xorg-server xorg-apps $DISPLAY_DRIVER mesa $MESA_LIBGL
case "$DESKTOP_ENVIRONMENT" in
"gnome" )
@@ -483,6 +460,29 @@ function desktop_environment_lxde() {
arch-chroot /mnt systemctl enable lxdm.service
}
+function packages() {
+ if [ "$FILE_SYSTEM_TYPE" == "btrfs" ]; then
+ arch-chroot /mnt pacman -Sy --noconfirm btrfs-progs
+ fi
+
+ if [ "$YAOURT" == "true" -o -n "$PACKAGES_YAOURT" ]; then
+ echo "" >> /mnt/etc/pacman.conf
+ echo "[archlinuxfr]" >> /mnt/etc/pacman.conf
+ echo "SigLevel=Optional TrustAll" >> /mnt/etc/pacman.conf
+ echo "Server=http://repo.archlinux.fr/\$arch" >> /mnt/etc/pacman.conf
+
+ arch-chroot /mnt pacman -Sy --noconfirm yaourt
+ fi
+
+ if [ -n "$PACKAGES_PACMAN" ]; then
+ arch-chroot /mnt pacman -Sy --noconfirm --needed $PACKAGES_PACMAN
+ fi
+
+ if [ -n "$PACKAGES_YAOURT" ]; then
+ arch-chroot /mnt yaourt -S --noconfirm --needed $PACKAGES_YAOURT
+ fi
+}
+
function end() {
umount -R /mnt
reboot
@@ -503,13 +503,13 @@ function main() {
if [ "$VIRTUALBOX" == "true" ]; then
virtualbox
fi
- packages
user
mkinitcpio
bootloader
if [ "$DESKTOP_ENVIRONMENT" != "" ]; then
desktop_environment
fi
+ packages
if [ "$REBOOT" == "true" ]; then
end
fi