diff options
author | Marvin Borner | 2021-07-05 16:48:07 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-05 16:51:23 +0200 |
commit | 46ce42e9b13ce209c8c971084cfc849a83848270 (patch) | |
tree | a85283f85c970bb26df6690a4ba08b017f1d4e25 /run | |
parent | 981342ef807ebcefba8eeba74511cdcedf9c36bd (diff) |
Added PCI, MBR, bugs and fixes
Diffstat (limited to 'run')
-rwxr-xr-x | run | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -87,7 +87,10 @@ build() { PART="p1" $SUDO parted -s "$DEV" mklabel msdos mkpart primary ext2 32k 100% -a minimal set 1 boot on $SUDO mke2fs -b 1024 -q "$DEV$PART" - $SUDO dd if=build/boot.bin of="$DEV" conv=notrunc status=none + + # Write bootsector but jump over partition table (at 440 to 510) + $SUDO dd if=build/boot.bin of="$DEV" bs=1 count=440 conv=notrunc status=none + $SUDO dd if=build/boot.bin of="$DEV" bs=1 skip=510 seek=510 conv=notrunc status=none # Mount disk and copy files #mkdir -p mnt/ |