- 论坛徽章:
- 0
|
losetup and mount, take reference:
install:
if [ ! -d ./scripts/mnt ]; then mkdir ./scripts/mnt; fi
sudo /sbin/losetup -o 32256 /dev/loop6 ./scripts/disk.img
sudo mount -o loop /dev/loop6 ./scripts/mnt
sudo cp vmjinix __vmjinix -f
sudo strip __vmjinix
sudo cp __vmjinix ./scripts/mnt/boot/vmjinix -f
sudo cp scripts/grub/grub.conf ./scripts/mnt/boot/grub/grub.conf -f
sudo rm -f __vmjinix
sudo ls -lh --color ./scripts/mnt/boot
sudo umount ./scripts/mnt
rm -fr ./scripts/mnt
sudo /sbin/losetup -d /dev/loop6
sudo sync |
|