arch-flo-junk/mkinicpio/hooks/imgmount
crondog 1d176175ab Update initramfs and boot info
firmware.service now just modprobes wlan to get it working
Other services do not need to be changed to work with firmware.service
creating a full arch linux initramfs now works (module loading still done via
firmware.service unfortunately)
2014-04-25 14:39:54 +10:00

13 lines
277 B
Bash

#!/usr/bin/ash
run_hook () {
mount_handler="img_mount_handler"
}
img_mount_handler() {
mkdir /data
mount -t ext4 /dev/mmcblk0p30 /data
mknod /dev/loop256 b 7 256
losetup /dev/loop256 /data/arch.img
mount -t ext4 -o rw,noatime /dev/loop256 /new_root
}