From 9fa04494e91f4dd7e1ff2f74164c046ee10dc601 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 20 Aug 2020 10:03:04 +0200 Subject: [PATCH] added debug method --- README.md | 7 +++++++ init | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2ad425b..575c040 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,13 @@ Boot on any archiso system, and run: curl -s https://eoli3n.github.io/archzfs/init | bash ``` +### Debug + +To run the script in verbose mode, use: +``` +curl -s https://eoli3n.github.io/archzfs/init | sed 's- &>/dev/null--' | bash +``` + ### Related - [Archzfs issue : Dynamically build/load ZFS module on default archiso #337](https://github.com/archzfs/archzfs/issues/337) diff --git a/init b/init index 0d556a9..caae107 100755 --- a/init +++ b/init @@ -41,7 +41,7 @@ Server = http://archzfs.com/archzfs/x86_64 Server = http://mirror.sum7.eu/archlinux/archzfs/archzfs/x86_64 Server = https://mirror.biocrafting.net/archlinux/archzfs/archzfs/x86_64 EOF - pacman -Sy > /dev/null + pacman -Sy &>/dev/null } init_archlinux_archive () { @@ -121,7 +121,7 @@ download_package () { print "Testing if archiso is running" -grep archiso /proc/cmdline > /dev/null +grep archiso /proc/cmdline >/dev/null print "Increasing cowspace to half of RAM" @@ -162,8 +162,8 @@ then print "Installing zfs-utils and zfs-linux" # Install packages - pacman -U "$zfs_utils_url" --noconfirm &> /dev/null - pacman -U "$zfs_linux_package" --noconfirm > /dev/null && zfs=1 + pacman -U "$zfs_utils_url" --noconfirm &>/dev/null + pacman -U "$zfs_linux_package" --noconfirm &>/dev/null && zfs=1 fi fi