addon1
This commit is contained in:
parent
6c48085ba3
commit
8e4da0cd50
1 changed files with 12 additions and 12 deletions
24
arch-install
24
arch-install
|
@ -201,11 +201,11 @@ function usbsecret() {
|
|||
function cron() {
|
||||
echo "cron-job snapshot"
|
||||
mkdir -p ${mountpoint}/var/spool/cron/
|
||||
if [ "y" == "${windualboot}" ]; then
|
||||
echo -n "0 18 * * * /usr/bin/snapshot makeboot ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
||||
else
|
||||
#if [ "y" == "${windualboot}" ]; then
|
||||
# echo -n "0 18 * * * /usr/bin/snapshot makeboot ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
||||
#else
|
||||
echo -n "0 18 * * * /usr/bin/snapshot make ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
||||
fi
|
||||
#fi
|
||||
|
||||
# custom-mounts
|
||||
for wort in ${mountsnaps}
|
||||
|
@ -1160,15 +1160,15 @@ then
|
|||
grubinstall
|
||||
|
||||
|
||||
if [ "y" == "${windualboot}" ]; then
|
||||
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
||||
else
|
||||
#if [ "y" == "${windualboot}" ]; then
|
||||
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
||||
#else
|
||||
if [ "${version}" == "libre" ]; then
|
||||
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
||||
else
|
||||
arch-chroot ${mountpoint} mkinitcpio -P -c /etc/mkinitcpio.conf
|
||||
fi
|
||||
fi
|
||||
#fi
|
||||
echo ""
|
||||
if [ "${boot}" == "grub" ]
|
||||
then
|
||||
|
@ -1198,15 +1198,15 @@ elif [ "${Partition}" == "bios" ]; then
|
|||
grubinstall
|
||||
|
||||
|
||||
if [ "y" == "${windualboot}" ]; then
|
||||
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
||||
else
|
||||
#if [ "y" == "${windualboot}" ]; then
|
||||
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
||||
#else
|
||||
if [ "${version}" == "libre" ]; then
|
||||
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
||||
else
|
||||
arch-chroot ${mountpoint} mkinitcpio -P linux -c /etc/mkinitcpio.conf
|
||||
fi
|
||||
fi
|
||||
#fi
|
||||
echo ""
|
||||
arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device}
|
||||
arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
|
Loading…
Reference in a new issue