diff options
| author | 2025-10-29 14:20:21 -0400 | |
|---|---|---|
| committer | 2025-10-29 14:20:21 -0400 | |
| commit | 342f1dcf115f998cbb5d27c5593e215b01e5b7a4 (patch) | |
| tree | 0cf3b25183d4e0e0081dae237f0d9b7a17f8e5d6 /hosts/moyo/scripts | |
| parent | 544da1ba50d9cbf51a18ca0abf1db66b3baa7460 (diff) | |
| download | dotfiles-342f1dcf115f998cbb5d27c5593e215b01e5b7a4.tar.gz dotfiles-342f1dcf115f998cbb5d27c5593e215b01e5b7a4.tar.bz2 dotfiles-342f1dcf115f998cbb5d27c5593e215b01e5b7a4.zip | |
Finish adding files from new moyo, misc updates
Diffstat (limited to 'hosts/moyo/scripts')
| -rwxr-xr-x | hosts/moyo/scripts/do-grub-install | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/emerge-update | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/export-nfs | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/gen-dracut | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/id-dm-device | 2 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/mount-luks | 11 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/prepare-network-mounts | 5 | ||||
| -rwxr-xr-x | hosts/moyo/scripts/raid-status | 2 |
8 files changed, 6 insertions, 22 deletions
diff --git a/hosts/moyo/scripts/do-grub-install b/hosts/moyo/scripts/do-grub-install deleted file mode 100755 index 8dda1cb..0000000 --- a/hosts/moyo/scripts/do-grub-install +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env sh -sudo grub-install --target=x86_64-efi --efi-directory=/boot diff --git a/hosts/moyo/scripts/emerge-update b/hosts/moyo/scripts/emerge-update deleted file mode 100755 index 2f8d3fe..0000000 --- a/hosts/moyo/scripts/emerge-update +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env sh -sudo emerge --ask --verbose --update --deep --newuse @world diff --git a/hosts/moyo/scripts/export-nfs b/hosts/moyo/scripts/export-nfs index 3643fa3..c09433a 100755 --- a/hosts/moyo/scripts/export-nfs +++ b/hosts/moyo/scripts/export-nfs @@ -1,2 +1,2 @@ #! /usr/bin/env sh -sudo exportfs -o rw,async,insecure,no_subtree_check,crossmnt -i 192.168.0.0/16:$1 +exportfs -o rw,async,insecure,no_subtree_check,crossmnt -i 192.168.0.0/16:$1 diff --git a/hosts/moyo/scripts/gen-dracut b/hosts/moyo/scripts/gen-dracut deleted file mode 100755 index 92eb88a..0000000 --- a/hosts/moyo/scripts/gen-dracut +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env sh -dracut -a lvm --kver=6.12.31-gentoo --force diff --git a/hosts/moyo/scripts/id-dm-device b/hosts/moyo/scripts/id-dm-device deleted file mode 100755 index b7d5781..0000000 --- a/hosts/moyo/scripts/id-dm-device +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env sh -sudo sudo dmsetup info /dev/$1 diff --git a/hosts/moyo/scripts/mount-luks b/hosts/moyo/scripts/mount-luks deleted file mode 100755 index 5be1aaa..0000000 --- a/hosts/moyo/scripts/mount-luks +++ /dev/null @@ -1,11 +0,0 @@ -#! /usr/bin/env sh - -sudo cryptsetup luksOpen /dev/mapper/moyo--vg1-moyo--store0--raid1 moyo-store0 -sudo mount /dev/mapper/moyo-store0 /mnt/store0 - -sudo mount --bind /mnt/store0/nfs/c /srv/nfs/c -sudo mount --bind /mnt/store0/nfs/pics /srv/nfs/pics -sudo mount --bind /mnt/store0/nfs/samba /srv/nfs/samba -$HOME/scripts/export-nfs /srv/nfs/c -$HOME/scripts/export-nfs /srv/nfs/pics -$HOME/scripts/export-nfs /srv/nfs/samba diff --git a/hosts/moyo/scripts/prepare-network-mounts b/hosts/moyo/scripts/prepare-network-mounts new file mode 100755 index 0000000..68afa14 --- /dev/null +++ b/hosts/moyo/scripts/prepare-network-mounts @@ -0,0 +1,5 @@ +#! /usr/bin/env sh +su -c 'mount --bind /mnt/store/nfs /srv/nfs && \ + /home/andrew/scripts/export-nfs /srv/nfs/c && \ + /home/andrew/scripts/export-nfs /srv/nfs/pics && \ + /home/andrew/scripts/export-nfs /srv/nfs/samba' diff --git a/hosts/moyo/scripts/raid-status b/hosts/moyo/scripts/raid-status deleted file mode 100755 index 8e1e86a..0000000 --- a/hosts/moyo/scripts/raid-status +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env sh -sudo lvs -a -o name,copy_percent,health_status,devices moyo-vg1 |