mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add network check to update-installer, move getent to base_common
This commit is contained in:
parent
06127469dd
commit
e38a9a3197
4 changed files with 11 additions and 3 deletions
|
@ -146,6 +146,14 @@ _update_installer_check() {
|
|||
echo "If you are absolutly sure it's not running, you need to remove /.update-installer"
|
||||
exit 1
|
||||
fi
|
||||
if ! [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
|
||||
if ! getent hosts www.google.com &>/dev/null; then
|
||||
echo -e "\033[91mAborting:\033[0m"
|
||||
echo "Network is not working..."
|
||||
echo "Please configure your network first."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
_zram_initialize() {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
build ()
|
||||
{
|
||||
map add_binary getent head id cksum tail test uptime w who whoami xargs \
|
||||
map add_binary head id cksum tail test uptime w who whoami xargs \
|
||||
swapon uniq seq fdisk sfdisk cfdisk parted free less \
|
||||
chgrp chown dialog dmesg egrep fgrep stty sync tar bsdcpio hdparm \
|
||||
dirname chroot expr bzip2 su sdparm tput \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
build ()
|
||||
{
|
||||
apps="getent head id cksum tail test uptime w who whoami xargs \
|
||||
apps="head id cksum tail test uptime w who whoami xargs \
|
||||
swapon uniq seq fdisk sfdisk cfdisk parted free less \
|
||||
chgrp dialog dmesg egrep fgrep stty sync tar bsdcpio hdparm \
|
||||
dirname chroot expr bunzip2 bzcat bzip2 su sdparm tput \
|
||||
|
|
|
@ -17,7 +17,7 @@ build ()
|
|||
kill killall more ps pwd rmdir true cat mkdir echo false sleep kmod pidof touch chmod \
|
||||
find wc uname bsdtar yes awk halt shutdown reboot poweroff insmod modprobe sh dd hexdump \
|
||||
sort zstd date tee mktemp install pgrep mkfs.btrfs rmmod mountpoint gzip \
|
||||
ldconfig nscd ln top df cut stat sln file tr
|
||||
ldconfig nscd ln top df cut stat sln file tr getent
|
||||
|
||||
### add nano
|
||||
add_binary nano
|
||||
|
|
Loading…
Reference in a new issue