mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31:17 -03:00
Add scripts
This commit is contained in:
parent
b6e99140cc
commit
5bba11567e
4 changed files with 238 additions and 0 deletions
29
ubuntu/2-para-install.sh
Normal file
29
ubuntu/2-para-install.sh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Varidate whether script is executed as sourced or not
|
||||
(return 0 2>/dev/null) && sourced=1 || sourced=0
|
||||
if [ $sourced -eq 0 ] ; then
|
||||
cat <<HEREDOC 1>&2
|
||||
***** ERROR : Must execute as source *****
|
||||
Execute as following :
|
||||
source 2-para-install.sh
|
||||
|
||||
Installation terminates.
|
||||
HEREDOC
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
# Check whether grub configuration file is ready to write
|
||||
if [ ! -d /target/etc/default/grub ] ; then
|
||||
cat <<HEREDOC 1>&2
|
||||
***** ERROR : The /target/etc/default/grub is not ready. *****
|
||||
Perhaps, to early to execute this script.
|
||||
|
||||
Installation terminates.
|
||||
HEREDOC
|
||||
return
|
||||
fi
|
||||
|
||||
# Make target GRUB aware to the crypt partition
|
||||
echo "GRUB_ENABLE_CRYPTODISK=y" >> /target/etc/default/grub
|
||||
Loading…
Add table
Add a link
Reference in a new issue