You are not logged in.
could you explain why using . install.sh is not good?
I tested on the latest release, zsh is the default shell now on the install cd.
Did not work for me in virtualbox. It says ".: no such file or directory: install.sh"
systemd is like pacman. enjoys eating up stuff.
Offline
hey,
aichingm wrote:could you explain why using . install.sh is not good?
I tested on the latest release, zsh is the default shell now on the install cd.
Did not work for me in virtualbox. It says ".: no such file or directory: install.sh"
oh I downloaded the last iso a week ago and didn't got the 2012-08-04 update so i tested just on the 2012-07-15 ... I will test the new install-medium today!
...
This will loop until you chose one of that.
It is only an idea, it is not better or worse, only different .
interesting idea!
My plan is to restructure the code in the next days, so I will maybe replace the old style with the select construct. Thank you very much for your input!
Mario
Offline
oh I downloaded the last iso a week ago and didn't got the 2012-08-04 update so i tested just on the 2012-07-15 ... I will test the new install-medium today!
You'll have to create an alias for . to source if you want to use it in zsh.
Last edited by progandy (2012-08-08 12:29:10)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
selection_menu()
{
echo $1
select menu_item in $2; do
[ -n "$menu_item" ] && break
done
echo $menu_item
}
# Question? then Options....
selection_menu "Bootloader?" "Grub Syslinux Lilo None"
Mr Green I like Landuke!
Offline
aichingm, GREAT JOB!!!
Tested on a VM, and it went just great.
Any chance you could make an option to encrypt the HD (of course everything but /boot).
It's just my 2cts.
Again Great Jog!
Offline
There is a small bug:
333 cp loclae.conf_new /mnt/etc/locale.conf
Good job :-)
Offline
[archiso~]#. install.sh
command not found! :emomad:
Offline
Make sure you chmod +x install.sh and then run in that directory with
./install.sh
Mr Green I like Landuke!
Offline
I rewrote the script completely!
Implemented some new features like:
zone and subzone are now selectable form a list!
I tried to make the script easier to use by asking for selections and not for text inputs!
Some bug fixed like the lonlae.conf thing
aichingm wrote:[archiso~]#. install.sh
command not found! :emomad:
. install.sh is only in bash allowed not in zsh!
There is a small bug:
aichingm wrote:333 cp loclae.conf_new /mnt/etc/locale.conf
Good job :-)
fixed
aichingm, GREAT JOB!!!
Tested on a VM, and it went just great.
Any chance you could make an option to encrypt the HD (of course everything but /boot).
It's just my 2cts.
Again Great Jog!
I will try to implement it in the next release!
Last edited by aichingm (2012-08-16 12:23:03)
Offline
Do not forget to add version to your script...
Looks much better now
You can search functions much quicker by using
grep ^function install.sh
Look forward to testing
Mr Green I like Landuke!
Offline
hi,
this sript is really great. I tried it with vmware and the installation went very well but, I had a small bug with Grub.
It shows for a second an error about locales before the Grub menu.
In fact en.mo was missing in /boot/brug/locale/
Offline
Install.sh needs this added
mkdir -p /boot/grub/locale
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
After line 441 [grub-install]
Mr Green I like Landuke!
Offline
bugfixes:
Install.sh needs this added
mkdir -p /boot/grub/locale cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
After line 441 [grub-install]
fixed!
new:
webseite: mario-aichinger.at/abai-a-bash-archlinux-installer/
arch.mario-aichinger.at/install.sh is the latest stable version.
If you want to download other/older versions visit arch.mario-aichinger.at/versions.
arch.mario-aichinger.at/dev_install.sh is the developing and testing version!
Mario
Offline
Great script! Simple and to the point!
Small syntax issue:
When you are prompted to enter the root password, and the two entries do not match, the script message says "Password not matches!"
This should be revised to something like: "Passwords do not match. Please try again."
"I just don't know what went wrong" - Derpy
Offline
Hi
Can you correct the line 171 in the function ask_base_devel()
171 : if [[ "$usecmirror" =~ ^[Yy]$ ]] || [[ "$usecmirror" =~ ^[Nn]$ ]]; then
should be :
171 : if [[ "$installbasedevel" =~ ^[Yy]$ ]] || [[ "$installbasedevel" =~ ^[Nn]$ ]]; then
and
The file /etc/hosts must be initialized with "$hostname"
maybe :
sed -i '/127.0.0.1/s/$/ '$hostname'/' /etc/hosts
sed -i '/::1/s/$/ '$hostname'/' /etc/hosts
nevertheless, great Job
Offline
Attempt failed due to static IP required.
Query: What is meant by "inet prefix" instead of IPaddress. The script lists IP and an example. Do I need to place a preamble on my IP address or put it in parens?
Why no reference to netmask?
Is static IP possible?
The script aborted at the IP step.
So far..looks good!
EDIT:Failed at this step:
IP (like 192.168.0.100/24): inet XXX.XX.XXX.XXX
Gateway (like 192.168.0.1): inet route xxx.xx.xxx.x
Error: an inet prefix is expected rather than "ipaddress".
Error: an inet address is expected rather than "inet route xxx.xx.xxx.x".
Object "eth0" is unknown, try "ip help".
./install.sh: line 371: pacstrap: command not found
Install grub-bios
./install.sh: line 379: pacstrap: command not found
./install.sh: line 403: /mnt/etc/fstab: No such file or directory
cp: cannot create regular file '/mnt/etc/locale.conf': No such file or directory
./install.sh: line 417: arch-chroot: command not found
Thank you for using!
If you have any feedback, wishes or errors please email me
at arch@mario-aichinger.at
Also feel free to leaf a comment on bbs.archlinux.org/viewtopic.php?id=146450
Happy hacking
Mario
Last edited by lilsirecho (2012-08-20 18:36:49)
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
please try arch.mario-aichinger.at/dev_install.sh and report your testing results!
Attempt failed due to static IP required.
Query: What is meant by "inet prefix" instead of IPaddress. The script lists IP and an example. Do I need to place a preamble on my IP address or put it in parens?
Why no reference to netmask?
Is static IP possible?
The script aborted at the IP step.
So far..looks good!
EDIT:Failed at this step:IP (like 192.168.0.100/24): inet XXX.XX.XXX.XXX Gateway (like 192.168.0.1): inet route xxx.xx.xxx.x Error: an inet prefix is expected rather than "ipaddress". Error: an inet address is expected rather than "inet route xxx.xx.xxx.x". Object "eth0" is unknown, try "ip help". ./install.sh: line 371: pacstrap: command not found Install grub-bios ./install.sh: line 379: pacstrap: command not found ./install.sh: line 403: /mnt/etc/fstab: No such file or directory cp: cannot create regular file '/mnt/etc/locale.conf': No such file or directory ./install.sh: line 417: arch-chroot: command not found Thank you for using! If you have any feedback, wishes or errors please email me at arch@mario-aichinger.at Also feel free to leaf a comment on bbs.archlinux.org/viewtopic.php?id=146450 Happy hacking Mario
fixed!
manual ip configuration works now! notice the installer and the system will use the config you entered!
Hi
Can you correct the line 171 in the function ask_base_devel()
171 : if [[ "$usecmirror" =~ ^[Yy]$ ]] || [[ "$usecmirror" =~ ^[Nn]$ ]]; then
should be :
171 : if [[ "$installbasedevel" =~ ^[Yy]$ ]] || [[ "$installbasedevel" =~ ^[Nn]$ ]]; then
and
The file /etc/hosts must be initialized with "$hostname"
maybe :
sed -i '/127.0.0.1/s/$/ '$hostname'/' /etc/hosts
sed -i '/::1/s/$/ '$hostname'/' /etc/hosts
nevertheless, great Job
fixed and added!
fixed usecmirror
added /etc/hosts configuration
fixed password syntax!
have good night/day Mario!
Offline
Ran the new dev_install.sh and received the following:
sh-4.2# ./dev_install.sh
Select keyboardlayout:
1) de
2) en
3) es
4) fr
5) us
6) other
#? 2
cannot open file en
Use automatic patition [y/n]: y
Select device (default is [sda]): sdb
Bootsize (default is 100M) [100[K/M/G]]:
Swapsize (default is 1024M) [100[K/M/G]]: 0
Use separat home partition (default is no)[y/n]: y
size for / (default is 3000M) [3000[K/M/G]]: 50000M
Device is sdb
Size of /boot is 100M
Size of swap is 0
Size of / is 50000M
Using separat /home: Yes
Config ok [y/n]? :y
Set filesystem for /boot (default is ext2):
Set filesystem for / (default is ext3):
Set filesystem for /home (default is ext3):
Select bootloader
1) GRUB
2) SYSLINUX
3) NONE
#? 1
Set network method
1) dhcpcd
2) manual
#? 2
IP (like 192.168.0.100): 216.86.214.121/24
Subnetmask (eg: 255.255.255.0): 255.255.255.0
Gateway (eg: 192.168.0.1): 215.86.214.1
Broadcast (like 192.168.0.255)216.86.214.255
DNS-Server (eg: 8.8.8.8 (google)): 216.
IP: 216.86.214.121/24
Subnetmask: 255.255.255.0
Gateway: 215.86.214.1
Broadcast: 216.86.214.255
DNS: 216.
Configuration ok[Y/n]: ^[[Dn
IP (like 192.168.0.100): xxx.xx.xxx.xxx
Subnetmask (eg: 255.255.255.0): 255.255.255.0
Gateway (eg: 192.168.0.1)xxx.xx.xxx.x
Broadcast (like 192.168.0.255)xxx.xx.xxx.xxx
DNS-Server (eg: 8.8.8.8 (google)): xxx.xx.xxx.x
IP: xxx.xx.xxx.xxx
Subnetmask: 255.255.255.0
Gateway: xxx.xx.xxx.x
Broadcast: 216.86.214.255
DNS: xxx.xx.xxx.x
Configuration ok[Y/n]: y
network
1) eth0
2) lo
#? 1
Use custom mirror? [y/n]: n
Install base-devel? [y/n]: y
Enter additional packages (separated by [space]):
Select Zone:
1) Africa 18) Eire 35) Jamaica 52) ROC
2) America 19) Etc 36) Japan 53) ROK
3) Antarctica 20) Europe 37) Kwajalein 54) Singapore
4) Arctic 21) Factory 38) Libya 55) Turkey
5) Asia 22) GB 39) MET 56) UCT
6) Atlantic 23) GB-Eire 40) MST 57) US
7) Australia 24) GMT 41) MST7MDT 58) UTC
8) Brazil 25) GMT+0 42) Mexico 59) Universal
9) CET 26) GMT-0 43) Mideast 60) W-SU
10) CST6CDT 27) GMT0 44) NZ 61) WET
11) Canada 28) Greenwich 45) NZ-CHAT 62) Zulu
12) Chile 29) HST 46) Navajo 63) iso3166.tab
13) Cuba 30) Hongkong 47) PRC 64) posix
14) EET 31) Iceland 48) PST8PDT 65) posixrules
15) EST 32) Indian 49) Pacific 66) right
16) EST5EDT 33) Iran 50) Poland 67) zone.tab
17) Egypt 34) Israel 51) Portugal
#? 2
Select SubZone:
1) Adak 49) Godthab 97) Noronha
2) Anchorage 50) Goose_Bay 98) North_Dakota
3) Anguilla 51) Grand_Turk 99) Ojinaga
4) Antigua 52) Grenada 100) Panama
5) Araguaina 53) Guadeloupe 101) Pangnirtung
6) Argentina 54) Guatemala 102) Paramaribo
7) Aruba 55) Guayaquil 103) Phoenix
8) Asuncion 56) Guyana 104) Port-au-Prince
9) Atikokan 57) Halifax 105) Port_of_Spain
10) Atka 58) Havana 106) Porto_Acre
11) Bahia 59) Hermosillo 107) Porto_Velho
12) Bahia_Banderas 60) Indiana 108) Puerto_Rico
13) Barbados 61) Indianapolis 109) Rainy_River
14) Belem 62) Inuvik 110) Rankin_Inlet
15) Belize 63) Iqaluit 111) Recife
16) Blanc-Sablon 64) Jamaica 112) Regina
17) Boa_Vista 65) Jujuy 113) Resolute
18) Bogota 66) Juneau 114) Rio_Branco
19) Boise 67) Kentucky 115) Rosario
20) Buenos_Aires 68) Knox_IN 116) Santa_Isabel
21) Cambridge_Bay 69) Kralendijk 117) Santarem
22) Campo_Grande 70) La_Paz 118) Santiago
23) Cancun 71) Lima 119) Santo_Domingo
24) Caracas 72) Los_Angeles 120) Sao_Paulo
25) Catamarca 73) Louisville 121) Scoresbysund
26) Cayenne 74) Lower_Princes 122) Shiprock
27) Cayman 75) Maceio 123) Sitka
28) Chicago 76) Managua 124) St_Barthelemy
29) Chihuahua 77) Manaus 125) St_Johns
30) Coral_Harbour 78) Marigot 126) St_Kitts
31) Cordoba 79) Martinique 127) St_Lucia
32) Costa_Rica 80) Matamoros 128) St_Thomas
33) Creston 81) Mazatlan 129) St_Vincent
34) Cuiaba 82) Mendoza 130) Swift_Current
35) Curacao 83) Menominee 131) Tegucigalpa
36) Danmarkshavn 84) Merida 132) Thule
37) Dawson 85) Metlakatla 133) Thunder_Bay
38) Dawson_Creek 86) Mexico_City 134) Tijuana
39) Denver 87) Miquelon 135) Toronto
40) Detroit 88) Moncton 136) Tortola
41) Dominica 89) Monterrey 137) Vancouver
42) Edmonton 90) Montevideo 138) Virgin
43) Eirunepe 91) Montreal 139) Whitehorse
44) El_Salvador 92) Montserrat 140) Winnipeg
45) Ensenada 93) Nassau 141) Yakutat
46) Fort_Wayne 94) New_York 142) Yellowknife
47) Fortaleza 95) Nipigon
48) Glace_Bay 96) Nome
#? 72
Enter the new hostname: n6re
Enter the localdomain [localdomain]: home
Locale:
1) de_DE.UTF-8
2) en_US.UTF-8
3) es_ES.UTF-8
4) other
#? 2
Password:
Password:
Welcome to fdisk (util-linux 2.21.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: unable to open /dev/sdb: No such file or directory
mke2fs 1.42.5 (29-Jul-2012)
Could not stat /dev/sdb1 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
/dev/sdb2: No such file or directory
mke2fs 1.42.5 (29-Jul-2012)
Could not stat /dev/sdb3 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
mke2fs 1.42.5 (29-Jul-2012)
Could not stat /dev/sdb4 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
mount: special device /dev/sdb3 does not exist
mount: special device /dev/sdb1 does not exist
mount: special device /dev/sdb4 does not exist
./dev_install.sh: line 404: ifconfig: command not found
RTNETLINK answers: File exists
./dev_install.sh: line 431: pacstrap: command not found
Install grub-bios
./dev_install.sh: line 441: pacstrap: command not found
./dev_install.sh: line 457: /mnt/etc/fstab: No such file or directory
cp: cannot create regular file '/mnt/etc/locale.conf': No such file or directory
./dev_install.sh: line 471: arch-chroot: command not found
umount: /mnt/boot: not mounted
umount: /mnt/home: not mounted
umount: /mnt: not mounted
Thank you for using!
If you have any feedback, wishes or errors please email me
at arch@mario-aichinger.at
Also feel free to leaf a comment on bbs.archlinux.org/viewtopic.php?id=146450
Happy hacking
Mario
sh-4.2# ./dev_install.sh
Select keyboardlayout:
1) de
2) en
3) es
4) fr
5) us
6) other
#? 2
cannot open file en
Use automatic patition [y/n]: y
Select device (default is [sda]): sdb
Bootsize (default is 100M) [100[K/M/G]]:
Swapsize (default is 1024M) [100[K/M/G]]: 0
Use separat home partition (default is no)[y/n]: y
size for / (default is 3000M) [3000[K/M/G]]: 50000M
Device is sdb
Size of /boot is 100M
Size of swap is 0
Size of / is 50000M
Using separat /home: Yes
Config ok [y/n]? :y
Set filesystem for /boot (default is ext2):
Set filesystem for / (default is ext3):
Set filesystem for /home (default is ext3):
Select bootloader
1) GRUB
2) SYSLINUX
3) NONE
#? 1
Set network method
1) dhcpcd
2) manual
#? 2
IP (like 192.168.0.100): 216.86.214.121
Subnetmask (eg: 255.255.255.0): 255.255.255.0
Gateway (eg: 192.168.0.1): 216.86.214.1
Broadcast (like 192.168.0.255)216.86.214.255
DNS-Server (eg: 8.8.8.8 (google)): 216.86.207.2
IP: 216.86.214.121
Subnetmask: 255.255.255.0
Gateway: 216.86.214.1
Broadcast: 216.86.214.255
DNS: 216.86.207.2
Configuration ok[Y/n]: y
network
1) eth0
2) lo
#? 1
Use custom mirror? [y/n]: n
Install base-devel? [y/n]: y
Enter additional packages (separated by [space]):
Select Zone:
1) Africa 18) Eire 35) Jamaica 52) ROC
2) America 19) Etc 36) Japan 53) ROK
3) Antarctica 20) Europe 37) Kwajalein 54) Singapore
4) Arctic 21) Factory 38) Libya 55) Turkey
5) Asia 22) GB 39) MET 56) UCT
6) Atlantic 23) GB-Eire 40) MST 57) US
7) Australia 24) GMT 41) MST7MDT 58) UTC
8) Brazil 25) GMT+0 42) Mexico 59) Universal
9) CET 26) GMT-0 43) Mideast 60) W-SU
10) CST6CDT 27) GMT0 44) NZ 61) WET
11) Canada 28) Greenwich 45) NZ-CHAT 62) Zulu
12) Chile 29) HST 46) Navajo 63) iso3166.tab
13) Cuba 30) Hongkong 47) PRC 64) posix
14) EET 31) Iceland 48) PST8PDT 65) posixrules
15) EST 32) Indian 49) Pacific 66) right
16) EST5EDT 33) Iran 50) Poland 67) zone.tab
17) Egypt 34) Israel 51) Portugal
#? 2
Select SubZone:
1) Adak 49) Godthab 97) Noronha
2) Anchorage 50) Goose_Bay 98) North_Dakota
3) Anguilla 51) Grand_Turk 99) Ojinaga
4) Antigua 52) Grenada 100) Panama
5) Araguaina 53) Guadeloupe 101) Pangnirtung
6) Argentina 54) Guatemala 102) Paramaribo
7) Aruba 55) Guayaquil 103) Phoenix
8) Asuncion 56) Guyana 104) Port-au-Prince
9) Atikokan 57) Halifax 105) Port_of_Spain
10) Atka 58) Havana 106) Porto_Acre
11) Bahia 59) Hermosillo 107) Porto_Velho
12) Bahia_Banderas 60) Indiana 108) Puerto_Rico
13) Barbados 61) Indianapolis 109) Rainy_River
14) Belem 62) Inuvik 110) Rankin_Inlet
15) Belize 63) Iqaluit 111) Recife
16) Blanc-Sablon 64) Jamaica 112) Regina
17) Boa_Vista 65) Jujuy 113) Resolute
18) Bogota 66) Juneau 114) Rio_Branco
19) Boise 67) Kentucky 115) Rosario
20) Buenos_Aires 68) Knox_IN 116) Santa_Isabel
21) Cambridge_Bay 69) Kralendijk 117) Santarem
22) Campo_Grande 70) La_Paz 118) Santiago
23) Cancun 71) Lima 119) Santo_Domingo
24) Caracas 72) Los_Angeles 120) Sao_Paulo
25) Catamarca 73) Louisville 121) Scoresbysund
26) Cayenne 74) Lower_Princes 122) Shiprock
27) Cayman 75) Maceio 123) Sitka
28) Chicago 76) Managua 124) St_Barthelemy
29) Chihuahua 77) Manaus 125) St_Johns
30) Coral_Harbour 78) Marigot 126) St_Kitts
31) Cordoba 79) Martinique 127) St_Lucia
32) Costa_Rica 80) Matamoros 128) St_Thomas
33) Creston 81) Mazatlan 129) St_Vincent
34) Cuiaba 82) Mendoza 130) Swift_Current
35) Curacao 83) Menominee 131) Tegucigalpa
36) Danmarkshavn 84) Merida 132) Thule
37) Dawson 85) Metlakatla 133) Thunder_Bay
38) Dawson_Creek 86) Mexico_City 134) Tijuana
39) Denver 87) Miquelon 135) Toronto
40) Detroit 88) Moncton 136) Tortola
41) Dominica 89) Monterrey 137) Vancouver
42) Edmonton 90) Montevideo 138) Virgin
43) Eirunepe 91) Montreal 139) Whitehorse
44) El_Salvador 92) Montserrat 140) Winnipeg
45) Ensenada 93) Nassau 141) Yakutat
46) Fort_Wayne 94) New_York 142) Yellowknife
47) Fortaleza 95) Nipigon
48) Glace_Bay 96) Nome
#? 72
Enter the new hostname: n6re
Enter the localdomain [localdomain]: home
Locale:
1) de_DE.UTF-8
2) en_US.UTF-8
3) es_ES.UTF-8
4) other
#? 2
Password:
Password:
Welcome to fdisk (util-linux 2.21.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): Partition number (1-4): Partition 1 is deleted
Command (m for help): Partition number (1-4): Partition 2 is deleted
Command (m for help): Partition number (1-4): Partition 3 is deleted
Command (m for help): Selected partition 4
Partition 4 is deleted
Command (m for help): 4: unknown command
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): Partition number (1-4, default 1): First sector (2048-156301487, default 2048): Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-156301487, default 156301487): Partition 1 of type Linux and of size 100 MiB is set
Command (m for help): Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): Partition number (1-4, default 2): First sector (206848-156301487, default 206848): Using default value 206848
Last sector, +sectors or +size{K,M,G} (206848-156301487, default 156301487): Partition 2 of type Linux and of size 512 B is set
Command (m for help): Partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
Select (default p): Partition number (1-4, default 3): First sector (206849-156301487, default 206849): Using default value 206849
Last sector, +sectors or +size{K,M,G} (206849-156301487, default 156301487): Partition 3 of type Linux and of size 48.8 GiB is set
Command (m for help): Partition type:
p primary (3 primary, 0 extended, 1 free)
e extended
Select (default e): Selected partition 4
First sector (102606849-156301487, default 102606849): Using default value 102606849
Last sector, +sectors or +size{K,M,G} (102606849-156301487, default 156301487): Using default value 156301487
Partition 4 of type Linux and of size 25.6 GiB is set
Command (m for help): Partition number (1-4):
Command (m for help): Partition number (1-4): Hex code (type L to list codes): Changed system type of partition 2 to 82 (Linux swap / Solaris)
Command (m for help):
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b2789
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 206847 102400 83 Linux
/dev/sdb2 206848 206848 0+ 82 Linux swap / Solaris
/dev/sdb3 206849 102606848 51200000 83 Linux
/dev/sdb4 102606849 156301487 26847319+ 83 Linux
Command (m for help): The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
25688 inodes, 102400 blocks
5120 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
13 block groups
8192 blocks per group, 8192 fragments per group
1976 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
mkswap: error: swap area needs to be at least 40 KiB
Usage:
mkswap [options] device [size]
Options:
-c, --check check bad blocks before creating the swap area
-f, --force allow swap size area be larger than device
-p, --pagesize SIZE specify page size in bytes
-L, --label LABEL specify label
-v, --swapversion NUM specify swap-space version number
-U, --uuid UUID specify the uuid to use
-V, --version output version information and exit
-h, --help display this help and exit
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
3203072 inodes, 12800000 blocks
640000 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
391 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1679360 inodes, 6711829 blocks
335591 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
205 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
./dev_install.sh: line 404: ifconfig: command not found
RTNETLINK answers: File exists
./dev_install.sh: line 431: pacstrap: command not found
Install grub-bios
./dev_install.sh: line 441: pacstrap: command not found
./dev_install.sh: line 457: /mnt/etc/fstab: No such file or directory
cp: cannot create regular file '/mnt/etc/locale.conf': No such file or directory
./dev_install.sh: line 471: arch-chroot: command not found
Thank you for using!
If you have any feedback, wishes or errors please email me
at arch@mario-aichinger.at
Also feel free to leaf a comment on bbs.archlinux.org/viewtopic.php?id=146450
Happy hacking
Mario
sh-4.2#
Did I do wrong?
Thanks for your posting and soon I feel it will work! The archiso begins with :
ip addr link set etho up.... That seems to be ifconfig data start-up.
Last edited by lilsirecho (2012-08-21 20:45:47)
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Second attempt also had the same abort condition.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
@lilsirecho: I suppose you are using a wrong (old) installmedia. pacstrap is only available on the recent arch images.
By the way, I think some code can be shortened, e.g.
if [[ "$installbasedevel" =~ ^[Yy]$ ]] || [[ "$installbasedevel" =~ ^[Nn]$ ]]; then
to
if [[ "$installbasedevel" =~ ^[YyNn]$ ]]; then
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
My install HDD is latest kernel .
I assume the pacstrap note would be there in an abort situation if the abort caused it not to complete.
The ifconfig note seems appropo for the failed install. All else is normal list of failed steps IMHO.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
In retrospect, the usual archlinux install of network followed a pattern wherein only the statement: eth0 meant dhcp.
The static IP arrangement had the following:
interface:eth0
ipaddr:
netmask:
Broadcast:
Gateway:
These were listed in that order.
Noting the script listing of : Network ....with an option of : eth0, it would seem that this is where the data is needed.
The listing made in the script has gateway before broadcast and I think it applies only to the selected manual dhcp which doesn't require the full gamut of eth0 data.
The script may have to ask for dhcp or static eth0 at some point. This would separate the entries and satisfy either. IMHO
Last edited by lilsirecho (2012-08-21 22:59:10)
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Booted another archlinux OS device , upgraded to 3.4.9-1, and repeated the dev_install.sh .
Same failure at step 404.
It seems static IP means different things to different people!!!! Step 404 seems to be a dhcp step imho.
EDIT: It seems apparent to me that the following setup is paramount to eth0 static:
ip link set eth0 up
ip addr add xxx.xx.xxx.xxx/24 dev eth0
ip route add default via xxx.xx.xxx.1
/etc/resolv.conf: nameservers
The dev being setup is eth0.
Last edited by lilsirecho (2012-08-21 23:22:50)
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
@lilsirecho
pacman -Ql arch-install-scripts
arch-install-scripts /usr/bin/pacstrap
Simply pacman in arch-install-scripts
Mr Green I like Landuke!
Offline
Think you need this
https://wiki.archlinux.org/index.php/St … assignment
For setting up static ip address
Think ifconfig is not used by Arch any more
Mr Green I like Landuke!
Offline