Dominique Leuenberger 2019-04-04 10:02:10 +00:00 committed by Git OBS Bridge
commit 66110b001e
3 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 28 20:25:48 UTC 2019 - Mark Fasheh <mfasheh@suse.com>
- Use correct path for dracut-fsck-help.txt in module-setup.sh (bsc#1122539)
* Remove module-setup.sh
* Add module-setup.sh.in
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 24 04:00:34 UTC 2019 - mfasheh@suse.com Thu Jan 24 04:00:34 UTC 2019 - mfasheh@suse.com

View File

@ -44,7 +44,7 @@ URL: https://btrfs.wiki.kernel.org/index.php/Main_Page
Source: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.gz Source: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.gz
# support for mkinitrd in < 13.1 # support for mkinitrd in < 13.1
Source1: boot-btrfs.sh Source1: boot-btrfs.sh
Source2: module-setup.sh Source2: module-setup.sh.in
Source3: dracut-fsck-help.txt Source3: dracut-fsck-help.txt
Source4: setup-btrfs.sh Source4: setup-btrfs.sh
Source5: sles11-defaults.h Source5: sles11-defaults.h
@ -248,8 +248,10 @@ rm -f %{buildroot}/%{_libdir}/*.a
install -m 0755 -d %{buildroot}/%{_datadir}/bash-completion/completions install -m 0755 -d %{buildroot}/%{_datadir}/bash-completion/completions
install -m 0644 btrfs-completion %{buildroot}/%{_datadir}/bash-completion/completions/btrfs install -m 0644 btrfs-completion %{buildroot}/%{_datadir}/bash-completion/completions/btrfs
%if 0%{?suse_version} > 1200 %if 0%{?suse_version} > 1200
install -m 0755 -D %{SOURCE2} %{buildroot}/%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh sed -e 's,@@INSTALLDIR@@,%{_datadir}/%{name}/,;' %{SOURCE2} > module-setup.sh
cp %{SOURCE3} . install -m 0755 -D module-setup.sh %{buildroot}/%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh
rm -f module-setup.sh
install -m 0644 -D %{SOURCE3} %{buildroot}/%{_datadir}/%{name}/dracut-fsck-help.txt
%endif %endif
%if 0%{!?for_debugging:1} %if 0%{!?for_debugging:1}
@ -291,8 +293,9 @@ done
%license COPYING %license COPYING
%endif %endif
%if 0%{?suse_version} > 1200 %if 0%{?suse_version} > 1200
%doc dracut-fsck-help.txt %dir %{_datadir}/%{name}
%{_dracutmodulesdir}/95suse-btrfs/ %{_datadir}/%{name}/dracut-fsck-help.txt
%dir %{_dracutmodulesdir}/95suse-btrfs/
%{_dracutmodulesdir}/95suse-btrfs/module-setup.sh %{_dracutmodulesdir}/95suse-btrfs/module-setup.sh
%endif %endif
/sbin/fsck.btrfs /sbin/fsck.btrfs

View File

@ -12,6 +12,6 @@ depends() {
# called by dracut # called by dracut
install() { install() {
inst_fsck_help "btrfs" "/usr/share/doc/packages/btrfsprogs/dracut-fsck-help.txt" inst_fsck_help "btrfs" "@@INSTALLDIR@@/dracut-fsck-help.txt"
} }