@jc35
mount /dev/sda1 /mnt
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
chroot /mnt ./usr/sbin/grub-install /dev/sda
@jc35
mount /dev/sda1 /mnt
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
chroot /mnt ./usr/sbin/grub-install /dev/sda
@Wayne-Workman said:
Do you have FOG 1.2.0 working? It can do all these things already.
Yes we have FOG 1.2.0 working.Why do you want bash commands for those things?
We need to automate some actions. We use glpi and rabbit mq.
when we put a machine discarded with glpi, rabbit mq send to fog " a wipe and imaging and delete a machine."