Last active
April 10, 2020 07:53
-
-
Save alexalouit/8e874fae69976abdc13faeff312bc5e8 to your computer and use it in GitHub Desktop.
Debian on Macbook 2,1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # see https://wiki.debian.org/InstallingDebianOn/Apple/MacBook/2-1 | |
| # use debian jessie as host (recent grub don't support target/efi-directory) | |
| $ apt-get install grub-efi-ia32-bin p7zip-full dosfstools | |
| # format usb as DOS + W95 FAT32 partition + vfat filesystem | |
| # mount usb as /mnt/usb | |
| # buster 32 bits | |
| $ wget http://ftp.de.debian.org/debian/dists/buster/main/installer-i386/current/images/netboot/mini.iso | |
| # buster 64 bits | |
| $ wget http://ftp.de.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/mini.iso | |
| $ grub-install --target=i386-efi --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --bootloader-id=boot --removable | |
| $ nano /mnt/usb/boot/grub/grub.cfg | |
| if loadfont /boot/grub/fonts/unicode.pf2 ; then | |
| set gfxmode=800x600 | |
| insmod efi_gop | |
| insmod efi_uga | |
| insmod video_bochs | |
| insmod video_cirrus | |
| insmod gfxterm | |
| insmod png | |
| terminal_output gfxterm | |
| fi | |
| linux (hd0,msdos1)/linux | |
| initrd (hd0,msdos1)/initrd.gz | |
| boot | |
| # extract linux initrd.gz | |
| $ 7z x mini.iso linux initrd.gz -o/mnt/usb | |
| # copy iso | |
| $ cp mini.iso /mnt/usb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment