[Why] We need to achieve automatic installation through 'pxe + kickstart + dnsmasq + httpd'.
So we need to rsync the ks file by rsync-server.
Signed-off-by: Yu Chuan 13186087857@163.com --- container/rsync-server/rsyncd.conf | 6 ++++++ container/rsync-server/start | 1 + 2 files changed, 7 insertions(+)
diff --git a/container/rsync-server/rsyncd.conf b/container/rsync-server/rsyncd.conf index cdba89cf20c8..ef00acb1bc0c 100644 --- a/container/rsync-server/rsyncd.conf +++ b/container/rsync-server/rsyncd.conf @@ -10,3 +10,9 @@ path = /srv/result/upload/ read only = no max connections = 200 refuse options = delete + +[ks] +path = /srv/os/kickstart/ks/ +read only = no +max connections = 200 +refuse options = delete diff --git a/container/rsync-server/start b/container/rsync-server/start index 956013268f89..ecd783a22dd2 100755 --- a/container/rsync-server/start +++ b/container/rsync-server/start @@ -11,6 +11,7 @@ cmd=( --restart=always --name=rsync_server -v /srv/result/upload:/srv/result/upload + -v /srv/os/kickstart/ks:/srv/os/kickstart/ks -v /etc/localtime:/etc/localtime:ro -p 11387:11387 rsync_server:latest
On Wed, Feb 10, 2021 at 11:42:58AM +0800, Yu Chuan wrote:
[Why] We need to achieve automatic installation through 'pxe + kickstart + dnsmasq + httpd'.
So we need to rsync the ks file by rsync-server.
Signed-off-by: Yu Chuan 13186087857@163.com
container/rsync-server/rsyncd.conf | 6 ++++++ container/rsync-server/start | 1 + 2 files changed, 7 insertions(+)
diff --git a/container/rsync-server/rsyncd.conf b/container/rsync-server/rsyncd.conf index cdba89cf20c8..ef00acb1bc0c 100644 --- a/container/rsync-server/rsyncd.conf +++ b/container/rsync-server/rsyncd.conf @@ -10,3 +10,9 @@ path = /srv/result/upload/ read only = no max connections = 200 refuse options = delete
+[ks] +path = /srv/os/kickstart/ks/
Why there's an extra ks/ under kickstart/? What will be the dir layout under kickstart/?
Thanks, Fengguang
+[ks] +path = /srv/os/kickstart/ks/
Why there's an extra ks/ under kickstart/? What will be the dir layout under kickstart/?
Yes, the xx.iso content and xx.iso is under the /srv/os/kickstart. So how about rename /srv/os/kickstart to /srv/os/pxe?
yuchuan@z9 ~% tree -L 5 /srv/os/kickstart /srv/os/kickstart ├── iso-content │ └── openeuler │ └── aarch64 │ └── 20.03 │ ├── boot.catalog │ ├── docs │ ├── EFI │ ├── images │ ├── Packages │ ├── repodata │ ├── RPM-GPG-KEY-openEuler │ └── TRANS.TBL ├── isos │ └── openeuler │ └── aarch64 │ └── 20.03 │ └── openEuler-20.03-LTS-aarch64-dvd.iso └── ks └── openeuler_aarch64_20.03.ks
-------- Thanks Yu Chuan
Thanks, Fengguang
On Thu, Feb 18, 2021 at 09:26:52AM +0800, Yu Chuan wrote:
+[ks] +path = /srv/os/kickstart/ks/
Why there's an extra ks/ under kickstart/? What will be the dir layout under kickstart/?
Yes, the xx.iso content and xx.iso is under the /srv/os/kickstart. So how about rename /srv/os/kickstart to /srv/os/pxe?
How about this name?
/srv/os/install
yuchuan@z9 ~% tree -L 5 /srv/os/kickstart /srv/os/kickstart ├── iso-content │ └── openeuler │ └── aarch64 │ └── 20.03 │ ├── boot.catalog │ ├── docs │ ├── EFI │ ├── images │ ├── Packages │ ├── repodata │ ├── RPM-GPG-KEY-openEuler │ └── TRANS.TBL ├── isos
isos => iso
Thanks, Fengguang
│ └── openeuler │ └── aarch64 │ └── 20.03 │ └── openEuler-20.03-LTS-aarch64-dvd.iso └── ks └── openeuler_aarch64_20.03.ks
Thanks Yu Chuan
Thanks, Fengguang
On Thu, Feb 18, 2021 at 10:43:46AM +0800, Wu Fengguang wrote:
On Thu, Feb 18, 2021 at 09:26:52AM +0800, Yu Chuan wrote:
+[ks] +path = /srv/os/kickstart/ks/
Why there's an extra ks/ under kickstart/? What will be the dir layout under kickstart/?
Yes, the xx.iso content and xx.iso is under the /srv/os/kickstart. So how about rename /srv/os/kickstart to /srv/os/pxe?
How about this name?
/srv/os/install
good.
yuchuan@z9 ~% tree -L 5 /srv/os/kickstart /srv/os/kickstart ├── iso-content │ └── openeuler │ └── aarch64 │ └── 20.03 │ ├── boot.catalog │ ├── docs │ ├── EFI │ ├── images │ ├── Packages │ ├── repodata │ ├── RPM-GPG-KEY-openEuler │ └── TRANS.TBL ├── isos
isos => iso
good.
-------- Thanks Yu Chuan
Thanks, Fengguang
│ └── openeuler │ └── aarch64 │ └── 20.03 │ └── openEuler-20.03-LTS-aarch64-dvd.iso └── ks └── openeuler_aarch64_20.03.ks
Thanks Yu Chuan
Thanks, Fengguang
On Wed, Feb 10, 2021 at 03:37:47PM +0800, Wu Fengguang wrote:
-v /srv/result/upload:/srv/result/upload
- -v /srv/os/kickstart/ks:/srv/os/kickstart/ks
That logically ties /srv/result and /srv/os to one single server.
Do we still use /srv/result/upload? Perhaps can remove it.
ok, I'll investigate if it has usage.
-------- Thanks Yu Chuan
Thanks, Fengguang