summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-June/005202.html
blob: d94bc03839ee2516c2e359d5d1a374d3b0f997f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] automatic chroot install using urpmi
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20automatic%20chroot%20install%20using%20urpmi&In-Reply-To=%3C1307539172.2802.10.camel%40vase%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="005200.html">
   <LINK REL="Next"  HREF="005203.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] automatic chroot install using urpmi</H1>
    <B>Vasiliy G Tolstov</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20automatic%20chroot%20install%20using%20urpmi&In-Reply-To=%3C1307539172.2802.10.camel%40vase%3E"
       TITLE="[Mageia-dev] automatic chroot install using urpmi">v.tolstov at selfip.ru
       </A><BR>
    <I>Wed Jun  8 15:19:32 CEST 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="005200.html">[Mageia-dev] automatic chroot install using urpmi
</A></li>
        <LI>Next message: <A HREF="005203.html">[Mageia-dev] automatic chroot install using urpmi
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#5202">[ date ]</a>
              <a href="thread.html#5202">[ thread ]</a>
              <a href="subject.html#5202">[ subject ]</a>
              <a href="author.html#5202">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On Wed, 2011-06-08 at 16:26 +0400, Vasiliy G Tolstov wrote:
&gt;<i> On Wed, 2011-06-08 at 15:23 +0300, Thomas Backlund wrote:
</I>&gt;<i> &gt; Vasiliy G Tolstov skrev 8.6.2011 15:14:
</I>&gt;<i> &gt; &gt; Hello. I'm glad to announce, that mageia linux is in testing mode on our
</I>&gt;<i> &gt; &gt; cloud vps hosting (clodo.ru).
</I>&gt;<i> &gt; &gt; After build image i have one question - is that possible to do fully
</I>&gt;<i> &gt; &gt; automatic install with this script:
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; #!/bin/bash
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; export LC_ALL=C
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; ROOT=$1
</I>&gt;<i> &gt; &gt; ARCH=$2
</I>&gt;<i> &gt; &gt; VERSION=$3
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; mount -o bind /dev ${ROOT}/dev/
</I>&gt;<i> &gt; &gt; mount -o bind /sys ${ROOT}/sys/
</I>&gt;<i> &gt; &gt; mount -t proc none ${ROOT}/proc/
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; if [ &quot;x${ARCH}&quot; != &quot;xx86_64&quot; ] ; then
</I>&gt;<i> &gt; &gt;    ARCH=&quot;i586&quot;
</I>&gt;<i> &gt; &gt; fi
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; urpmi.addmedia --urpmi-root ${ROOT} --distrib
</I>&gt;<i> &gt; &gt; <A HREF="http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/${VERSION">http://ftp.cc.uoc.gr/mirrors/linux/mageia/distrib/${VERSION</A>}/${ARCH}
</I>&gt;<i> &gt; &gt; urpmi -v --replacefiles --ignoresize --urpmi-root ${ROOT} basesystem
</I>&gt;<i> &gt; &gt; urpmi -v --replacefiles --ignoresize --urpmi-root ${ROOT} openssh-server
</I>&gt;<i> &gt; &gt; ntpd
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; No need to make it 2 steps, you can push all in one go...
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; &gt; One problem is: urpmi try to get answers for installing default init
</I>&gt;<i> &gt; &gt; system, default boot loader and some other questions.... How can i avoid
</I>&gt;<i> &gt; &gt; it to do full unattended install?
</I>&gt;<i> &gt; &gt;
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; Either use --auto, or be specific (add all packages you get a question 
</I>&gt;<i> &gt; about):
</I>&gt;<i> &gt; urpmi -v --replacefiles --ignoresize --urpmi-root ${ROOT} basesystem 
</I>&gt;<i> &gt; openssh-server ntpd grub sysvinit
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; And if you dont need the kernel, you can use basesystem-minimal and dont 
</I>&gt;<i> &gt; need to specify grub
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; --
</I>&gt;<i> &gt; Thomas
</I>&gt;<i> 
</I>&gt;<i> Thank's for answer. Very well. If i use basesystem-minimal and append
</I>&gt;<i> grub systemd ntpd openssh-server and kernel, does that system can
</I>&gt;<i> boot-up ?
</I>&gt;<i> 
</I>

Hmm. I change cmd line to:
urpmi -v --replacefiles --ignoresize --urpmi-root ${ROOT}
basesystem-minimal openssh-server ntpd grub vim man rsyslog systemd
systemd-sysvinit

But basesystem-minimal depends of polkit-gnome, pinentry-gtk2 why? this
is server... Or i need many stuff from X to run software under server?



-- 
Vasiliy G Tolstov &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">v.tolstov at selfip.ru</A>&gt;
Selfip.Ru

</PRE>



<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="005200.html">[Mageia-dev] automatic chroot install using urpmi
</A></li>
	<LI>Next message: <A HREF="005203.html">[Mageia-dev] automatic chroot install using urpmi
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#5202">[ date ]</a>
              <a href="thread.html#5202">[ thread ]</a>
              <a href="subject.html#5202">[ subject ]</a>
              <a href="author.html#5202">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>