Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Disk /dev/sda: 489.1 GiB, 525112713216 bytes, 1025610768 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: gpt
- Disk identifier: xxxxxxxxxxxxxxxxxxxxxxxx
- Device Start End Sectors Size Type
- /dev/sda1 2048 1050623 1048576 512M EFI System
- /dev/sda2 1050624 1025610734 1024560111 488.6G Linux filesystem
- # Begin /boot/grub/grub.cfg
- set default=0
- set timeout=5
- insmod gzio
- insmod part_gpt
- insmod ext2
- set root=(hd0, gpt2)
- # hd[x] is the drive of the LFS partion and gpt[y] is the partition
- insmod efi_gop
- insmod efi_uga
- insmod font
- if loadfont /grub/unicode.pf2; then
- loadfont /grub/unicode.pf2
- set gfxmode=auto
- insmod gfxterm
- set gfxpayload=keep
- terminal_output gfxterm
- fi
- menuentry "GNU/Linux, Linux 5.2.1-lfs-20190714-systemd" {
- linux /boot/vmlinuz-5.2.1-lfs-20190714-systemd root=/dev/sda2 ro console=tty0 console=ttyS0
- initrd /boot/initramfs.cpio.gz
- }
- #!/bin/busybox sh
- # Mount the /proc and /sys filesystems.
- mount -t proc none /proc
- mount -t sysfs none /sys
- # Do your stuff here.
- echo "This script just mounts and boots the rootfs, nothing else!"
- # Mount the root filesystem.
- mount -o ro /dev/sda2 /mnt/root
- # Clean up.
- umount /proc
- umount /sys
- #exec /bin/sh
- #Boot the real thing.
- exec switch_root /mnt/root /sbin/init
- sudo ./qemu-system-x86_64
- --bios /src/edk2/Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd
- -nographic -net none
- -drive file=/dev/sda,index=0,media=disk,format=raw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement