Go to the first, previous, next, last section, table of contents.


setup

Command: setup [@option{--force-lba}] [@option{--stage2=os_stage2_file}] [@option{--prefix=dir}] install_device [image_device]
Set up the installation of GRUB automatically. This command uses the more flexible command @command{install} (see section install) in the backend and installs GRUB into the device install_device. If image_device is specified, then find the GRUB images (see section GRUB image files) in the device image_device, otherwise use the current root device, which can be set by the command @command{root}. If install_device is a hard disk, then embed a Stage 1.5 in the disk if possible.

The option @option{--prefix} specifies the directory under which GRUB images are put. If it is not specified, GRUB automatically searches them in `/boot/grub' and `/grub'.

The options @option{--force-lba} and @option{--stage2} are just passed to @command{install} if specified. See section install, for more information.


Go to the first, previous, next, last section, table of contents.