From 7bc11816a44e8cd2712e46dc958795d354856419 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 3 Apr 2017 09:57:13 -0700 Subject: Fix yet another class of codeblock bugs -- Leah really has no consitency.. --- docs/gnulinux/grub_boot_installer.md | 20 ++++++++++---------- docs/gnulinux/grub_cbfs.md | 10 +++++----- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'docs/gnulinux') diff --git a/docs/gnulinux/grub_boot_installer.md b/docs/gnulinux/grub_boot_installer.md index 08a1c83e..1fd924b1 100644 --- a/docs/gnulinux/grub_boot_installer.md +++ b/docs/gnulinux/grub_boot_installer.md @@ -29,19 +29,19 @@ If you downloaded your ISO on an existing GNU+Linux system, here is how to create the bootable GNU+Linux USB drive: Connect the USB drive. Check dmesg:\ -**\$ dmesg**\ + $ dmesg Check lsblk to confirm which drive it is:\ -**\$ lsblk** + $ lsblk Check that it wasn't automatically mounted. If it was, unmount it. For example:\ -**\$ sudo umount /dev/sdX\***\ -**\# umount /dev/sdX\*** + $ sudo umount /dev/sdX\* + # umount /dev/sdX\* dmesg told you what device it is. Overwrite the drive, writing your distro ISO to it with dd. For example:\ -**\$ sudo dd if=gnulinux.iso of=/dev/sdX bs=8M; sync**\ -**\# dd if=gnulinux.iso of=/dev/sdX bs=8M; sync** + $ sudo dd if=gnulinux.iso of=/dev/sdX bs=8M; sync + # dd if=gnulinux.iso of=/dev/sdX bs=8M; sync You should now be able to boot the installer from your USB drive. Continue reading, for information about how to do that. @@ -72,17 +72,17 @@ If you downloaded your ISO on a LibertyBSD or OpenBSD system, here is how to create the bootable GNU+Linux USB drive: Connect the USB drive. Check dmesg:\ -**\$ dmesg | tail**\ + $ dmesg | tail Check to confirm which drive it is, for example, if you think its sd3:\ -**\$ disklabel sd3** + $ disklabel sd3 Check that it wasn't automatically mounted. If it was, unmount it. For example:\ -**\$ doas umount /dev/sd3i**\ + $ doas umount /dev/sd3i dmesg told you what device it is. Overwrite the drive, writing the OpenBSD installer to it with dd. For example:\ -**\$ doas dd if=gnulinux.iso of=/dev/rsdXc bs=1M; sync**\ + $ doas dd if=gnulinux.iso of=/dev/rsdXc bs=1M; sync You should now be able to boot the installer from your USB drive. Continue reading, for information about how to do that. diff --git a/docs/gnulinux/grub_cbfs.md b/docs/gnulinux/grub_cbfs.md index feb16b73..31192f5a 100644 --- a/docs/gnulinux/grub_cbfs.md +++ b/docs/gnulinux/grub_cbfs.md @@ -153,7 +153,7 @@ Extract grubtest.cfg from the ROM image {#extract_testconfig} --------------------------------------- You can check the contents of the ROM image, inside CBFS:\ -**\$ cd \.../libreboot\_util/cbfstool** **\$ ./cbfstool libreboot.rom + $ cd \.../libreboot\_util/cbfstool** $ ./cbfstool libreboot.rom print** The files *grub.cfg* and *grubtest.cfg* should be present. grub.cfg is @@ -162,7 +162,7 @@ this tutorial, you will first modify and test *grubtest.cfg*. This is to reduce the possibility of bricking your device, so DO NOT SKIP THIS! Extract grubtest.cfg from the ROM image:\ -**\$ ./cbfstool libreboot.rom extract -n grubtest.cfg -f grubtest.cfg** + $ ./cbfstool libreboot.rom extract -n grubtest.cfg -f grubtest.cfg Modify the grubtest.cfg accordingly. @@ -175,7 +175,7 @@ Re-insert the modified grubtest.cfg into the ROM image {#reinsert_modified_testc Once your grubtest.cfg is modified and saved, delete the unmodified config from the ROM image:\ -**\$ ./cbfstool libreboot.rom remove -n grubtest.cfg** + $ ./cbfstool libreboot.rom remove -n grubtest.cfg Next, insert the modified version:\ **\$ ./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t @@ -228,10 +228,10 @@ the already modified config). From /libreboot\_util/cbfstool, do:\ grub.cfg**\ Delete the grub.cfg that remained inside the ROM:\ -**\$ ./cbfstool libreboot.rom remove -n grub.cfg** + $ ./cbfstool libreboot.rom remove -n grub.cfg Add the modified version that you just made:\ -**\$ ./cbfstool libreboot.rom add -n grub.cfg -f grub.cfg -t raw** + $ ./cbfstool libreboot.rom add -n grub.cfg -f grub.cfg -t raw **Now you have a modified ROM. Again, refer back to [../install/\#flashrom](../install/#flashrom) for information on how to -- cgit v1.2.3-70-g09d2