|
2 | 2 | Live linux distro combined in one EFI file. |
3 | 3 | Download herehttps://github.com/zhovner/OneFileLinux/releases/tag/v0.1-alpha |
4 | 4 |
|
| 5 | +More information in russianhttps://habrahabr.ru/post/349758/ |
5 | 6 |
|
6 | 7 | ##Install on Mac |
7 | 8 |
|
8 | 9 | ###1. Mount EFI System Partition |
9 | 10 | ``` |
10 | | -mkdir /tmp/efi |
11 | | -sudo mount -t msdos /tmp/efi /dev/diskN |
| 11 | +diskutil mount disk_NUMBER |
| 12 | +``` |
| 13 | +To find out EFI partition disk number use`diskutil list` |
| 14 | +<imgsrc="https://habrastorage.org/webt/_y/h2/j5/_yh2j5hz9dqthcegf5sebnmxmui.png"width="500"> |
| 15 | + |
| 16 | +The command is as follows in my case: |
| 17 | +``` |
| 18 | +diskutil mount disk0s1 |
12 | 19 | ``` |
13 | | -To find out EFI partition disk number use*diskutil list* |
14 | 20 |
|
15 | 21 | ###2. Copy OneFileLinux.EFI to EFI Partiotion |
16 | | -`cp ~/Downloads/OneFileLinux.efi /tmp/efi/` |
| 22 | +`cp ~/Downloads/OneFileLinux.efi /Volumes/EFI` |
17 | 23 |
|
18 | 24 |
|
19 | 25 | ###3. Set NVRAM to boot linux once |
20 | | -`sudo bless --mount /tmp/efi --setBoot --nextonly --file /tmp/OneFileLinux.efi` |
| 26 | +`sudo bless --mount /Volumes/EFI --setBoot --nextonly --file /Volumes/EFI/OneFileLinux.efi` |
21 | 27 |
|
22 | 28 | This command will boot linux only once. Next reboot will return previous boot sequence. |
23 | 29 |
|
@@ -60,7 +66,10 @@ Edit what you need. Install packages with `apk` packet manager. |
60 | 66 |
|
61 | 67 | ###Create cpio file |
62 | 68 |
|
63 | | -`find ./alpine-minirootfs | cpio -H newc -o > ./alpineramfs.cpio` |
| 69 | +``` |
| 70 | +cd ./alpine-minirootfs |
| 71 | +find . | cpio -H newc -o > ../alpineramfs.cpio |
| 72 | +``` |
64 | 73 |
|
65 | 74 | ###Build kernel |
66 | 75 |
|
|