|
@@ -10,7 +10,7 @@ Notes on using Grub2 for BIOS-based platforms
|
|
is enough free space *before* the first partition to
|
|
is enough free space *before* the first partition to
|
|
store Grub2. Leaving 1 MB of free space is safe.
|
|
store Grub2. Leaving 1 MB of free space is safe.
|
|
3. Setup loop device and loop partitions
|
|
3. Setup loop device and loop partitions
|
|
- loop_dev=$(sudo losetup -f disk.img)
|
|
|
|
|
|
+ loop_dev=$(sudo losetup -f --show disk.img)
|
|
sudo partx -a "$loop_dev"
|
|
sudo partx -a "$loop_dev"
|
|
4. Prepare the root partition
|
|
4. Prepare the root partition
|
|
sudo mkfs.ext3 -L root "${loop_dev}p1"
|
|
sudo mkfs.ext3 -L root "${loop_dev}p1"
|
|
@@ -65,7 +65,7 @@ Notes on using Grub2 for x86/x86_64 EFI-based platforms
|
|
- Create a second partition, type 8300, for the root
|
|
- Create a second partition, type 8300, for the root
|
|
filesystem.
|
|
filesystem.
|
|
3. Setup loop device and loop partitions
|
|
3. Setup loop device and loop partitions
|
|
- loop_dev=$(sudo losetup -f disk.img)
|
|
|
|
|
|
+ loop_dev=$(sudo losetup -f --show disk.img)
|
|
sudo partx -a "$loop_dev"
|
|
sudo partx -a "$loop_dev"
|
|
4. Prepare the boot partition
|
|
4. Prepare the boot partition
|
|
sudo mkfs.vfat -n boot "${loop_dev}p1"
|
|
sudo mkfs.vfat -n boot "${loop_dev}p1"
|