2017-04: Retroactive Updates
* Updated drive detection to support NVMe drives (SMART and badblocks) * Misc cleanup
This commit is contained in:
parent
1297501714
commit
18e9e0b332
4 changed files with 4 additions and 5 deletions
|
|
@ -60,7 +60,7 @@ OUT="$TMP_DIR/hw-diags.out"
|
||||||
|
|
||||||
## Some code borrowed from stackoverflow.com/a/10020397
|
## Some code borrowed from stackoverflow.com/a/10020397
|
||||||
ARCH_DRIVES=($(ls -l /dev/disk/by-label | grep -iE 'ARCH.*[hs]d[a-z]' | sed -r 's#.*/([hs]d[a-z])[0-9]+#\1#' | sort | uniq))
|
ARCH_DRIVES=($(ls -l /dev/disk/by-label | grep -iE 'ARCH.*[hs]d[a-z]' | sed -r 's#.*/([hs]d[a-z])[0-9]+#\1#' | sort | uniq))
|
||||||
DRIVES=($(inxi -Dxx -c 0 | grep -E "ID-[0-9]+" | sed -r 's#.*/dev/([hs]d[a-z]).*#\1#' | sort))
|
DRIVES=($(inxi -Dxx -c 0 | grep -E "ID-[0-9]+" | sed -r 's#.*/dev/([hs]d[a-z]|nvme[0-9]n[0-9]).*#\1#' | sort))
|
||||||
for d in "${ARCH_DRIVES[@]}"; do
|
for d in "${ARCH_DRIVES[@]}"; do
|
||||||
DRIVES=(${DRIVES[@]//*$d*})
|
DRIVES=(${DRIVES[@]//*$d*})
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ chntpw
|
||||||
cmatrix
|
cmatrix
|
||||||
colordiff
|
colordiff
|
||||||
conky
|
conky
|
||||||
cower
|
|
||||||
crda
|
crda
|
||||||
curl
|
curl
|
||||||
darkhttpd
|
darkhttpd
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ LocalFileSigLevel = Optional
|
||||||
|
|
||||||
[customrepo]
|
[customrepo]
|
||||||
SigLevel = Optional TrustAll
|
SigLevel = Optional TrustAll
|
||||||
Server = file:///root/wk-arch/custom-repo/$arch
|
Server = file:///home/wkadmin/wk-arch/custom-repo/$arch
|
||||||
|
|
||||||
#[testing]
|
#[testing]
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
|
||||||
4
build-wk
4
build-wk
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Set Vars
|
# Set Vars
|
||||||
LOG_DIR="/D_Drive/ArchBuilds/BuildLogs"
|
LOG_DIR="/ArchBuilds/BuildLogs"
|
||||||
OUT_DIR="/D_Drive/ArchBuilds"
|
OUT_DIR="/ArchBuilds"
|
||||||
TMP_DIR="/ScratchDir"
|
TMP_DIR="/ScratchDir"
|
||||||
DATE="$(date +%F)"
|
DATE="$(date +%F)"
|
||||||
DATETIME="$(date +%F_%H%M)"
|
DATETIME="$(date +%F_%H%M)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue