diff options
Diffstat (limited to 'builder/build-initramfs.sh')
-rwxr-xr-x | builder/build-initramfs.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builder/build-initramfs.sh b/builder/build-initramfs.sh index 698ffae5..dcab3b1d 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -151,7 +151,7 @@ print_command_line_option_description() { -f --full-cleanup Removes all retrieved and compiled files (usefull to retrieve latest version of all nested modules). -t --target Creates an image against given target template filesystem. If not - explicitly speicifed current system will be used as template system + explicitly specified current system will be used as template system (default: "$target"). -s --use-systemd-in-initramfs Use Systemd as init process in initramfs @@ -494,8 +494,9 @@ main() { _xmount_mountpoint_target="$(mktemp --directory)" xmount --in qemu "$target" --out raw "$_xmount_mountpoint_target" _xmount_device_target="$(losetup --find)" - losetup "$_xmount_device_target" loopdev \ + losetup --partscan "$_xmount_device_target" \ "${_xmount_mountpoint_target}/"*.dd + # TODO Use partscan mount "$_xmount_device_target" "$_target" fi if [[ -d "$_target" ]]; then |