beautysh
This commit is contained in:
parent
9c2ad735e9
commit
6989a2b69f
1 changed files with 12 additions and 12 deletions
24
arch-install
24
arch-install
|
@ -204,9 +204,9 @@ function cron() {
|
||||||
echo "cron-job snapshot"
|
echo "cron-job snapshot"
|
||||||
mkdir -p ${mountpoint}/var/spool/cron/
|
mkdir -p ${mountpoint}/var/spool/cron/
|
||||||
if [ "y" == "${windualboot}" ]; then
|
if [ "y" == "${windualboot}" ]; then
|
||||||
echo -n "0 18 * * * /usr/bin/snapshot make ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
echo -n "0 18 * * * /usr/bin/snapshot make ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
||||||
else
|
else
|
||||||
echo -n "0 18 * * * /usr/bin/snapshot makeboot ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
echo -n "0 18 * * * /usr/bin/snapshot makeboot ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# custom-mounts
|
# custom-mounts
|
||||||
|
@ -1167,11 +1167,11 @@ then
|
||||||
#if [ "y" == "${windualboot}" ]; then
|
#if [ "y" == "${windualboot}" ]; then
|
||||||
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
||||||
#else
|
#else
|
||||||
if [ "${version}" == "libre" ]; then
|
if [ "${version}" == "libre" ]; then
|
||||||
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
||||||
else
|
else
|
||||||
arch-chroot ${mountpoint} mkinitcpio -P -c /etc/mkinitcpio.conf
|
arch-chroot ${mountpoint} mkinitcpio -P -c /etc/mkinitcpio.conf
|
||||||
fi
|
fi
|
||||||
#fi
|
#fi
|
||||||
echo ""
|
echo ""
|
||||||
if [ "${boot}" == "grub" ]
|
if [ "${boot}" == "grub" ]
|
||||||
|
@ -1205,11 +1205,11 @@ elif [ "${Partition}" == "bios" ]; then
|
||||||
#if [ "y" == "${windualboot}" ]; then
|
#if [ "y" == "${windualboot}" ]; then
|
||||||
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
# mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
|
||||||
#else
|
#else
|
||||||
if [ "${version}" == "libre" ]; then
|
if [ "${version}" == "libre" ]; then
|
||||||
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
||||||
else
|
else
|
||||||
arch-chroot ${mountpoint} mkinitcpio -P linux -c /etc/mkinitcpio.conf
|
arch-chroot ${mountpoint} mkinitcpio -P linux -c /etc/mkinitcpio.conf
|
||||||
fi
|
fi
|
||||||
#fi
|
#fi
|
||||||
echo ""
|
echo ""
|
||||||
arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device}
|
arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device}
|
||||||
|
|
Loading…
Reference in a new issue