Skip to content

Commit

Permalink
unpack .iso via bsdtar rather than mounting it
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiers committed May 13, 2015
1 parent a8636e3 commit fe8a83d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions image.spec.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# needsrootforbuild

Url: http://www.suse.com/cloud
Name: __NAME__
Summary: %containment_image_description product .iso
Expand All @@ -11,7 +9,7 @@ Source: __SOURCE__
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: containment-rpm-config
%define temp_mnt /mnt/iso
BuildRequires: bsdtar

%description
This package installs the unpacked %containment_image_description product .iso into:
Expand All @@ -23,17 +21,15 @@ It is intended to be installed on the SUSE Cloud admin server.
%prep

%build
mkdir -p %temp_mnt
mount %{S:0} %temp_mnt

bsdtar xf %{S:0}


%install
install -d -m 755 $RPM_BUILD_ROOT%containment_image_dest_dir
cp -pr %temp_mnt/* $RPM_BUILD_ROOT%containment_image_dest_dir
cp -pr * $RPM_BUILD_ROOT%containment_image_dest_dir
install -d -m 755 %{_rpmdir}/OTHER
cp -pr %{S:0} %{_rpmdir}/OTHER
umount %temp_mnt

%files
%defattr(-, root, root)
%containment_extra_files
Expand Down

0 comments on commit fe8a83d

Please sign in to comment.