Mageia Bugzilla – Attachment 10585 Details for
Bug 24030
Can't install grub with /boot formatted with xfs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
small wrapper to add a new repo
add-my-repo (text/plain), 1017 bytes, created by
Thierry Vignaud
on 2018-12-19 15:47:43 CET
(
hide
)
Description:
small wrapper to add a new repo
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2018-12-19 15:47:43 CET
Size:
1017 bytes
patch
obsolete
>#!/bin/sh >#TV # creating the repo >#TV mkdir ~/repo >#TV ln RPMS/x86_64/* ~/repo >#TV genhdlist2 ~/repo >#TV sudo urpmi.addmedia TMP ~/repo > ># make it available through net >sudo ln -sf ~tv/repo /usr/share/nginx/html/ >echo ">> Test repo is available:" >curl http://192.168.0.10/repo//media_info/MD5SUM || exit 1 > ># adding it to --distrib subset: >sudo ln -sf ~tv/repo/media_info/synthesis.hdlist.cz /mageia/unstable/x86_64/media/media_info/synthesis.hdlist_repo.cz >sudo ln -sf ~tv/repo/media_info/hdlist.cz /mageia/unstable/x86_64/media/media_info/hdlist_repo.cz >sudo ln -sf ~tv/repo/ /mageia/unstable/x86_64/media/ >sudo chown tv: /mageia/unstable/x86_64/media/media_info/media.cfg > >F=/mageia/unstable/x86_64/media/media_info/media.cfg >#name="tv/extra" >name=repo >if ! grep -q $name $F; then >cat >> $F <<EOF > >[$name] >hdlist=hdlist_repo.cz >media_type=official:free:release >name=$name >EOF >else > echo '>> Already in media.cfg!' >fi > >F2=/usr/share/nginx/html/auto_inst.cfg.pl >echo ">> Check $name in $F2:" >grep "'$name'," $F2 >
#!/bin/sh #TV # creating the repo #TV mkdir ~/repo #TV ln RPMS/x86_64/* ~/repo #TV genhdlist2 ~/repo #TV sudo urpmi.addmedia TMP ~/repo # make it available through net sudo ln -sf ~tv/repo /usr/share/nginx/html/ echo ">> Test repo is available:" curl http://192.168.0.10/repo//media_info/MD5SUM || exit 1 # adding it to --distrib subset: sudo ln -sf ~tv/repo/media_info/synthesis.hdlist.cz /mageia/unstable/x86_64/media/media_info/synthesis.hdlist_repo.cz sudo ln -sf ~tv/repo/media_info/hdlist.cz /mageia/unstable/x86_64/media/media_info/hdlist_repo.cz sudo ln -sf ~tv/repo/ /mageia/unstable/x86_64/media/ sudo chown tv: /mageia/unstable/x86_64/media/media_info/media.cfg F=/mageia/unstable/x86_64/media/media_info/media.cfg #name="tv/extra" name=repo if ! grep -q $name $F; then cat >> $F <<EOF [$name] hdlist=hdlist_repo.cz media_type=official:free:release name=$name EOF else echo '>> Already in media.cfg!' fi F2=/usr/share/nginx/html/auto_inst.cfg.pl echo ">> Check $name in $F2:" grep "'$name'," $F2
View Attachment As Raw
Actions:
View
Attachments on
bug 24030
:
10580
|
10584
| 10585