Skip to content

Commit 7f87d2e

Browse files
committed
ghost: install libcrypt.a from debian libcrypt-dev_4.4.27-1.1_amd64.deb if on Arch, exit if pushd failed
1 parent 540ddb2 commit 7f87d2e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

presets/ghost/target/root/first_boot_install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ done
7373

7474
# Desktop entries
7575
rm -rf /usr/local/share/*
76-
pushd /usr/share/applications
76+
pushd /usr/share/applications || exit 1
7777
rm -rf *
7878

7979
printf '[Desktop Entry]
@@ -149,11 +149,12 @@ mkdir -p /home/code/src/
149149
chown code:code /home/code/src/
150150
chmod g+rwXs /home/code/src/
151151
ln -s /home/code/src/solcloud/dev-stack/bin/dev-stack-remote.sh /usr/bin/dev
152+
[ -x /bin/pacman ] && (cp libcrypt.a /lib/ && chmod o+r /lib/libcrypt.a)
152153

153154
rm -rf /lib/udev/rules.d/
154155
rm -f /lib/udev/*.sh
155-
pushd /etc/udev/rules.d/
156-
rm $(grep -l '# Intentionally empty' * | xargs)
156+
pushd /etc/udev/rules.d/ || exit 1
157+
rm $(grep -l '# Intentionally empty' * | xargs)
157158
popd
158159

159160
echo "New password for daniel"
259 KB
Binary file not shown.

0 commit comments

Comments
 (0)