diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-08-20 21:01:58 +0500 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-08-20 21:01:58 +0500 |
| commit | 396b18a36a8ee72d347de9af5383f2a8a91c8e67 (patch) | |
| tree | 8c29d6d2e758b08528143543ac12a027b0ba6ef7 /alpine/fstab.sh | |
| parent | 8a1b3be58997c81ac808fbe672f222791aae8ece (diff) | |
Add old scripts
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'alpine/fstab.sh')
| -rwxr-xr-x | alpine/fstab.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/alpine/fstab.sh b/alpine/fstab.sh new file mode 100755 index 0000000..2085999 --- /dev/null +++ b/alpine/fstab.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Copyright (C) 2025-2026 Maria Lisina +# SPDX-License-Identifier: Apache-2.0 +# +# fstab configuration + +set -e + +__boot="$(blkid -o value -s UUID /dev/${1}1)" +__root="$(blkid -o value -s UUID /dev/${1}2)" + +cat << EOF > /etc/fstab +UUID=${__root} / ext4 defaults 0 1 +UUID=${__boot} /boot vfat defaults 0 2 +EOF |
