Alexey Sheplyakov
36b688d17a
network boot: support loading complete ISOs via HTTP
...
Now I don't have to unpack (or loop mount) ISO to boot via HTTP.
Also I can boot directly from any ALT mirror, like this:
automatic=method:http,network:dhcp,server:mirror.yandex.ru,directory=/altlinux/images/p9/simply/aarch64/slinux-live-9.1.1-aarch64.iso
Closes: #40710
2021-09-17 17:26:33 +04:00
Alexey Sheplyakov
736c89620f
http_download_file: fixed download of files >= 2GB size
...
* Use `unsigned long` to store the file size
* Return an error if the file size can not be found
* Avoid loading files >= 4GB on 32-bit systems
Related: #40710
2021-09-17 17:26:33 +04:00
Alexey Sheplyakov
f6a430fd36
ftp_prepare: check if the image fits into (1/2 of) RAM
...
Related: #40710
2021-09-08 12:00:41 +04:00
Alexey Sheplyakov
0a972b5b86
http_prepare: check if the image fits into (1/2 of) RAM
2021-09-08 12:00:32 +04:00
Evgeny Sinelnikov
9e47dc484c
network.c: set PREFIX to "/" for nfs and cifs methods due its mounted to image root
2021-04-05 13:05:51 +04:00
Evgeny Sinelnikov
111d828c45
network.c, url.c: disable keep-alive and close http socket after downloading
...
With default Connection: keep-alive and without closing read socket after
downloading stage2 propagator hangs until socket not closed on server side.
2019-09-03 17:30:52 +04:00
Evgeny Sinelnikov
59a9c4de30
add support of cifs network install method
2018-08-22 20:08:23 +04:00
Arseny Maslennikov
2440a17fbe
Remove unnecessary whitespace from C program text
2018-05-09 15:21:26 +03:00
Leonid Krivoshein
8c4366e9c6
network.c: protect from buffer overflow.
...
This change also suppress a compiler warning:
network.c:307:18: warning: '%d' directive writing between
1 and 11 bytes into a region of size 3 [-Wformat-overflow=]
2018-04-22 20:27:51 +03:00
Leonid Krivoshein
416b43d012
network.c: bridge up algorithm reviewed, fixed memory leaks.
...
+ network.c/interface_select():
- "No network device found." message moved to intf_select_and_up();
- This function now is only one attempt with udev-settle() call;
- Fixed memory leaks;
+ network.c/intf_select_and_up():
- "No network device found." error messege now here;
- 15 attempts to select and wait network interface;
- Recursion replaced to loop;
2018-04-22 17:19:55 +03:00
Leonid Krivoshein
da2111e239
init.c, disk.c, cdrom.c, network.c: whitespace cleanup.
2018-04-22 17:06:01 +03:00
Mikhail Efremov
68ad717ec3
cdrom.c, network.c, tools.c: Fix memory leaks
2017-12-08 16:18:56 +03:00
Mikhail Efremov
ee71c69502
Use ramdisk_size from kernel cmdline
...
If we can't get file's size then use ramdisk_size if given.
2017-12-08 16:18:37 +03:00
Mikhail Efremov
7f50a883ac
Check that RAM size is enough for ramdisk
...
Don't try to load ramdisk we don't have enough memory.
2017-12-08 16:18:37 +03:00
Michael Shigorin
fd2cfbeea0
cdrom.c, network.c: tweak messages
...
No code changes, just slightly better strings.
2015-03-27 10:41:24 +03:00
Anton V. Boyarshinov
5e3a8c51a3
20101130-alt9
...
- completely broken memory calculation code deleted: we are lucky
2011-06-10 15:43:42 +04:00
Anton V. Boyarshinov
5379a6c482
basic plymouth support
2010-11-22 19:56:35 +03:00
Vladislav Zavjalov
75ae272058
fix interface selection in non-automatic mode
2009-03-13 15:08:59 +03:00
Sergey Bolshakov
3c3b7111de
if case of empty automatic interface try all interfaces in turn
...
based on 42b2e94c by Vladislav Zavjalov <slazav@altlinux.org>
2009-03-12 17:56:31 +03:00
Sergey Bolshakov
c075380f3d
bring networking up, if requested by auto "network" param, regardless of method
2008-11-12 17:23:06 +03:00
Sergey Bolshakov
4f5522e9aa
guard against broken dns servers, returning domainless names
2008-04-16 13:40:56 +03:00
Sergey Bolshakov
b78eaa5775
my_insmod() proto change: consider enum driver_type obsolete
2008-02-29 20:05:35 +03:00
Sergey Bolshakov
85b34d353b
dhcp next-server and root-path options can be used,
...
if no server nor directory params supplied in automatic mode.
2007-09-19 00:46:56 +04:00
Sergey Bolshakov
feea139224
use version string everywhere in user dialogs
2007-08-02 20:45:59 +04:00
Sergey Bolshakov
cc2e4b59f6
- switch to glibc
2007-02-27 16:54:57 +03:00
Anton Farygin
069c12ef3a
export DNS_SERVER and DNS_SERVER2 for stage2
2005-07-05 14:35:10 +00:00
Anton Farygin
3085a93992
bootsplash progressbar support
2005-04-21 11:06:44 +00:00
Sergey Bolshakov
c5d9d80f43
- added ntfs support
...
- more env vars:
+ with disk, DEVICE holds partition name, i.e. hda2
+ PIGGYBACK set means install from iso image (disk & nfs)
- HTTP/1.0 from now
2005-03-02 17:48:28 +00:00
Sergey Bolshakov
44bc6e0be3
hide pppoe for a while
2005-02-28 19:26:48 +00:00
Sergey Bolshakov
21cdf5ab70
added NETBITS env var to simplify net/mask notation later
2005-02-18 19:55:32 +00:00
Sergey Bolshakov
0e0fae403d
network-related env vars exported
2005-02-17 14:30:26 +00:00
Sergey Bolshakov
74b6fa7a73
nfs->iso scheme added
...
obsolete #define ripped out
2005-02-04 20:28:52 +00:00
Sergey Bolshakov
f1ad494580
http method unified
2005-02-03 18:10:15 +00:00
Sergey Bolshakov
c199c141b5
- do not die when couldn't open console rw
...
- losetup tweaks
2005-02-03 15:38:15 +00:00
Sergey Bolshakov
59b435ddcc
changed location and name of stage2 image:
...
now resides at installation tree root and named as altinst.
If altinst is directory, then just mound --bind used.
This can be used in nfsroot env.
2005-02-02 19:26:15 +00:00
Sergey Bolshakov
d62b45ce1a
propagate env from stage1 further
2005-01-21 13:52:04 +00:00
Sergey Bolshakov
5c0ed5b05a
convenience #define for debugging purpose
...
with it ramdisk contents can be exported via nfs as is, w/o cloop creation
2005-01-19 13:33:30 +00:00
Sergey Bolshakov
68463187b0
'disk' install method fixed.
...
WARNING: proto changed: get_ramdisk_path(char *)
2004-12-12 22:22:50 +00:00
Sergey Bolshakov
c87915807d
*** empty log message ***
2004-11-30 18:50:20 +00:00
Sergey Bolshakov
0be6937de0
new stage2 spawning scheme
2004-11-30 14:44:10 +00:00
Anton Farygin
8e45f2d2e5
use cloop images for stage2
...
removed method live (use parameter live for detection stage2 filesystem image)
2004-11-30 11:47:57 +00:00
Anton Kachalov
46438969c6
Initial revision
2004-01-20 18:32:43 +00:00