diff options
author | torben | 2016-12-01 10:30:19 +0100 |
---|---|---|
committer | torben | 2016-12-01 10:30:19 +0100 |
commit | bb35ee9e5548a989f7ec93d082a8b3b99d45b5f0 (patch) | |
tree | b82ae63da8c23c69806028bc568b2729252814a8 | |
parent | Fix. (diff) | |
download | systemd-init-bb35ee9e5548a989f7ec93d082a8b3b99d45b5f0.tar.gz systemd-init-bb35ee9e5548a989f7ec93d082a8b3b99d45b5f0.tar.xz systemd-init-bb35ee9e5548a989f7ec93d082a8b3b99d45b5f0.zip |
merge
-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 46e322c0..b705fece 100755 --- a/builder/build-initramfs.sh +++ b/builder/build-initramfs.sh @@ -149,7 +149,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 @@ -489,8 +489,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 |