mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 18:41:17 -03:00
Add shell check disable
To supress unnessary message in the post-install
This commit is contained in:
parent
594dfedc24
commit
0779994278
2 changed files with 4 additions and 2 deletions
|
|
@ -115,6 +115,7 @@ function post_install() {
|
||||||
|
|
||||||
# Change root and create the keyfile and ramfs image for Linux kernel.
|
# Change root and create the keyfile and ramfs image for Linux kernel.
|
||||||
echo "...Chroot to ${TARGETMOUNTPOINT}."
|
echo "...Chroot to ${TARGETMOUNTPOINT}."
|
||||||
|
# shellcheck disable=SC2086
|
||||||
cat <<- HEREDOC | chroot ${TARGETMOUNTPOINT} /bin/bash
|
cat <<- HEREDOC | chroot ${TARGETMOUNTPOINT} /bin/bash
|
||||||
# Mount the rest of partitions by target /etc/fstab
|
# Mount the rest of partitions by target /etc/fstab
|
||||||
mount -a
|
mount -a
|
||||||
|
|
@ -136,7 +137,7 @@ function post_install() {
|
||||||
|
|
||||||
# Add the LUKS volume information to /etc/crypttab to decrypt by kernel.
|
# Add the LUKS volume information to /etc/crypttab to decrypt by kernel.
|
||||||
echo "...Adding LUKS volume info to /etc/crypttab."
|
echo "...Adding LUKS volume info to /etc/crypttab."
|
||||||
echo "${CRYPTPARTNAME} UUID=$(blkid -s UUID -o value "${DEV}${CRYPTPARTITION}") /etc/luks/boot_os.keyfile luks,discard" >> /etc/crypttab
|
echo "${CRYPTPARTNAME} UUID=$(blkid -s UUID -o value ${DEV}${CRYPTPARTITION}) /etc/luks/boot_os.keyfile luks,discard" >> /etc/crypttab
|
||||||
|
|
||||||
# Putting key file into the ramfs initial image
|
# Putting key file into the ramfs initial image
|
||||||
echo "...Registering key file to the ramfs"
|
echo "...Registering key file to the ramfs"
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ function post_install() {
|
||||||
|
|
||||||
# Change root and create the keyfile and ramfs image for Linux kernel.
|
# Change root and create the keyfile and ramfs image for Linux kernel.
|
||||||
echo "...Chroot to ${TARGETMOUNTPOINT}."
|
echo "...Chroot to ${TARGETMOUNTPOINT}."
|
||||||
|
# shellcheck disable=SC2086
|
||||||
cat <<- HEREDOC | chroot ${TARGETMOUNTPOINT} /bin/bash
|
cat <<- HEREDOC | chroot ${TARGETMOUNTPOINT} /bin/bash
|
||||||
# Mount the rest of partitions by target /etc/fstab
|
# Mount the rest of partitions by target /etc/fstab
|
||||||
mount -a
|
mount -a
|
||||||
|
|
@ -163,7 +164,7 @@ function post_install() {
|
||||||
|
|
||||||
# Add the LUKS volume information to /etc/crypttab to decrypt by kernel.
|
# Add the LUKS volume information to /etc/crypttab to decrypt by kernel.
|
||||||
echo "...Adding LUKS volume info to /etc/crypttab."
|
echo "...Adding LUKS volume info to /etc/crypttab."
|
||||||
echo "${CRYPTPARTNAME} UUID=$(blkid -s UUID -o value "${DEV}""${CRYPTPARTITION}") /etc/luks/boot_os.keyfile luks,discard" >> /etc/crypttab
|
echo "${CRYPTPARTNAME} UUID=$(blkid -s UUID -o value ${DEV}${CRYPTPARTITION}) /etc/luks/boot_os.keyfile luks,discard" >> /etc/crypttab
|
||||||
|
|
||||||
# Putting key file into the ramfs initial image
|
# Putting key file into the ramfs initial image
|
||||||
echo "...Registering key file to the ramfs"
|
echo "...Registering key file to the ramfs"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue