summaryrefslogtreecommitdiff
path: root/update-kernel.in
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-01-07 11:13:52 -0500
committerKaarle Ritvanen <kunkku@alpinelinux.org>2021-11-17 14:54:14 +0200
commit8a8dedbbe2ec2de6953db3db2d2a1fee3f294692 (patch)
tree2f7ffad225b1051e969b9c53606a330c5c8c91e0 /update-kernel.in
parent3f05d555080522d7d0503e070a7c2dc28a7e4090 (diff)
downloadalpine-conf-8a8dedbbe2ec2de6953db3db2d2a1fee3f294692.zip
update-kernel: rename internal TMPDIR -> tmpdir
Diffstat (limited to 'update-kernel.in')
-rw-r--r--update-kernel.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 2d70035..b1a8986 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -30,7 +30,7 @@ MKINITFS_ARGS=
REPOSITORIES_FILE=/etc/apk/repositories
KEYS_DIR=/etc/apk/keys
SIGNALS="HUP INT TERM"
-TMPDIR=
+tmpdir=
features=
modloopfw=
@@ -182,7 +182,7 @@ clean_up() {
if [ "$SUPERUSER" ] && [ -z "$FAKEROOTKEY" ]; then
apk del $QUIET_OPT $VIRTUAL
fi
- rm -fr $TMPDIR
+ rm -fr $tmpdir
}
sign_modloop() {
@@ -196,7 +196,7 @@ sign_modloop() {
MODLOOPSIG=${in##*/}.SIGN.RSA.${pubkey##*/}
echo "Signing: $in"
openssl dgst -sha1 -sign "$privkey" \
- -out "$TMPDIR/$MODLOOPSIG" \
+ -out "$tmpdir/$MODLOOPSIG" \
"$in"
}
@@ -218,8 +218,8 @@ fi
[ "$ARCH" ] || ARCH=$(apk --print-arch)
-TMPDIR=$(mktemp -d /tmp/$SCRIPT.XXXXXX)
-ROOT=$TMPDIR/root
+tmpdir=$(mktemp -d /tmp/$SCRIPT.XXXXXX)
+ROOT=$tmpdir/root
BOOT=$ROOT/boot
_apk() {
@@ -276,8 +276,8 @@ DTBDIR=$ROOT/boot/dtbs-$FLAVOR
depmod -b $ROOT "$KVER"
-STAGING=$TMPDIR/boot
-MODLOOP=$TMPDIR/modloop
+STAGING=$tmpdir/boot
+MODLOOP=$tmpdir/modloop
MODIMG=modloop-$FLAVOR
mkdir $MODLOOP $STAGING
@@ -330,7 +330,7 @@ mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error $mksfs
if [ -n "$MODLOOPSIGN" ]; then
sign_modloop "$STAGING/$MODIMG"
- MKINITFS_ARGS="$MKINITFS_ARGS -s $TMPDIR/$MODLOOPSIG"
+ MKINITFS_ARGS="$MKINITFS_ARGS -s $tmpdir/$MODLOOPSIG"
fi
mkinitfs $MKINITFS_ARGS -q -b $ROOT -F "$features base squashfs" \